fixed bug pointed out by Herb.
authorAndrew Tridgell <tridge@samba.org>
Thu, 8 Oct 1998 22:48:46 +0000 (22:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 8 Oct 1998 22:48:46 +0000 (22:48 +0000)
(This used to be commit 35a5e9ce4fd60806e652f221e25caa0664b69209)

source3/libsmb/smbdes.c

index e9f23295500b52c06283da9771f6126de361ddc6..1d6c6bc0a686836331987ce7a9e2f7c4ae9b56f4 100644 (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;