summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-08 22:48:46 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-08 22:48:46 +0000
commitd57d00005ee9056f5abf636ef7828098ae02ce2d (patch)
treed0cba7b8958fc728cdc0dae03410045134382bc1 /source3
parent809a9de797d6896d776dca581a993b9be07c6327 (diff)
downloadsamba-d57d00005ee9056f5abf636ef7828098ae02ce2d.tar.gz
samba-d57d00005ee9056f5abf636ef7828098ae02ce2d.tar.bz2
samba-d57d00005ee9056f5abf636ef7828098ae02ce2d.zip
fixed bug pointed out by Herb.
(This used to be commit 35a5e9ce4fd60806e652f221e25caa0664b69209)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smbdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index e9f2329550..1d6c6bc0a6 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -432,7 +432,7 @@ void SamOEMhash( unsigned char *data, unsigned char *key, int val)
s_box[ind] = s_box[j];
s_box[j] = tc;
}
- for( ind = 0; ind < val ? 516 : 8; ind++)
+ for( ind = 0; ind < (val ? 516 : 8); ind++)
{
unsigned char tc;
unsigned char t;