16 changed to 8 by mistake in samoemhash.
authorLuke Leighton <lkcl@samba.org>
Wed, 14 Oct 1998 16:12:45 +0000 (16:12 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 14 Oct 1998 16:12:45 +0000 (16:12 +0000)
source/libsmb/smbdes.c

index c0f749ad3b32248d186a73f4da21f0c690b8b795..46b337cda88921c2dd995516a9dbe8a1c1f4f17f 100644 (file)
@@ -438,7 +438,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 : 16); ind++)
   {
     unsigned char tc;
     unsigned char t;