From: Andrew Tridgell Date: Thu, 8 Oct 1998 22:48:46 +0000 (+0000) Subject: fixed bug pointed out by Herb. X-Git-Tag: samba-4.0.0alpha6~801^2~21506 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=d57d00005ee9056f5abf636ef7828098ae02ce2d fixed bug pointed out by Herb. (This used to be commit 35a5e9ce4fd60806e652f221e25caa0664b69209) --- diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c index e9f23295500..1d6c6bc0a68 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;