From d57d00005ee9056f5abf636ef7828098ae02ce2d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Oct 1998 22:48:46 +0000 Subject: fixed bug pointed out by Herb. (This used to be commit 35a5e9ce4fd60806e652f221e25caa0664b69209) --- source3/libsmb/smbdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit