summaryrefslogtreecommitdiff
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
commit35a5e9ce4fd60806e652f221e25caa0664b69209 (patch)
tree20dfaeb397274a781117899796a6374ccc672d60
parent0a8c03bb98498c10186dd12f1602f6e859465a8a (diff)
downloadsamba-35a5e9ce4fd60806e652f221e25caa0664b69209.tar.gz
fixed bug pointed out by Herb.
-rw-r--r--source/libsmb/smbdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/smbdes.c b/source/libsmb/smbdes.c
index e9f23295500..1d6c6bc0a68 100644
--- a/source/libsmb/smbdes.c
+++ b/source/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;