diff options
Diffstat (limited to 'protocols/jabber/sasl.c')
-rw-r--r-- | protocols/jabber/sasl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c index c8aad776..10fbe270 100644 --- a/protocols/jabber/sasl.c +++ b/protocols/jabber/sasl.c @@ -471,7 +471,7 @@ static xt_status sasl_pkt_challenge_scram(struct xt_node *node, gpointer data) *reply = NULL, *client_first_bare = NULL, *server_first = NULL, *client_final_noproof = NULL, *auth_message = NULL, *client_final = NULL; unsigned char *salt = NULL; - size_t salt_len, iter_count; + size_t salt_len, iter_count, i; int algo = jd->challenge.scram_algo; size_t md_len = gcry_md_get_algo_dlen(algo); @@ -523,7 +523,7 @@ static xt_status sasl_pkt_challenge_scram(struct xt_node *node, gpointer data) hmac(algo, stored_key, sizeof(stored_key), (unsigned char *)auth_message, strlen(auth_message), client_signature); - for (size_t i = 0; i < sizeof(client_key); i++) { + for (i = 0; i < sizeof(client_key); i++) { client_proof[i] = client_key[i] ^ client_signature[i]; } |