lib: Fix a signed/unsigned mixup
authorVolker Lendecke <vl@samba.org>
Sun, 1 May 2016 15:28:56 +0000 (17:28 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 16 May 2016 17:52:22 +0000 (19:52 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/crypto/arcfour.c

index d310649e702e39dbd194552e1efc7014614bb140..00054d321523affd614f4acef85763b200ae0373 100644 (file)
@@ -25,7 +25,7 @@
 /* initialise the arcfour sbox with key */
 _PUBLIC_ void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key) 
 {
-       int ind;
+       size_t ind;
        uint8_t j = 0;
        for (ind = 0; ind < sizeof(state->sbox); ind++) {
                state->sbox[ind] = (uint8_t)ind;