1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

fixed bug pointed out by Herb.

This commit is contained in:
Andrew Tridgell
-
parent 0a8c03bb98
commit 35a5e9ce4f

View File

@ -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;