diff options
-rw-r--r-- | source3/libsmb/smbdes.c | 2 |
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; |