also add check for NULL pointers
authorphilsmd <philsmd@hashcat.net>
Sun, 13 Mar 2016 16:42:12 +0000 (17:42 +0100)
committerphilsmd <philsmd@hashcat.net>
Sun, 13 Mar 2016 16:42:12 +0000 (17:42 +0100)
src/oclHashcat.c

index 292df88..cb3eb3f 100644 (file)
@@ -11144,6 +11144,8 @@ int main (int argc, char **argv)
 
           if (hash_len < 1) continue;
 
+          if (hash_buf == NULL) continue;
+
           if (username)
           {
             char *user_buf = NULL;