diff options
Diffstat (limited to 'source/libsmb/smbdes.c')
-rw-r--r-- | source/libsmb/smbdes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/smbdes.c b/source/libsmb/smbdes.c index d0e1c6e85fb..7e8a9a5b89e 100644 --- a/source/libsmb/smbdes.c +++ b/source/libsmb/smbdes.c @@ -381,7 +381,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 : 16); ind++) + for( ind = 0; ind < val; ind++) { unsigned char tc; unsigned char t; |