git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0fe14
)
lib: Fix a signed/unsigned mixup
author
Volker Lendecke
<vl@samba.org>
Sun, 1 May 2016 15:28:56 +0000
(17:28 +0200)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/lib/crypto/arcfour.c
b/lib/crypto/arcfour.c
index d310649e702e39dbd194552e1efc7014614bb140..00054d321523affd614f4acef85763b200ae0373 100644
(file)
--- a/
lib/crypto/arcfour.c
+++ b/
lib/crypto/arcfour.c
@@
-25,7
+25,7
@@
/* initialise the arcfour sbox with key */
_PUBLIC_ void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key)
{
-
in
t ind;
+
size_
t ind;
uint8_t j = 0;
for (ind = 0; ind < sizeof(state->sbox); ind++) {
state->sbox[ind] = (uint8_t)ind;