From b26fb4788bdfdb1c1765b54f03b1b09538c4b135 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Mon, 20 Jun 2016 18:50:46 +0200 Subject: Follow c89/90 --- protocols/jabber/sasl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') 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]; } -- cgit v1.2.3