From b76495e0f53b745da17165ca096df38af010fb2a Mon Sep 17 00:00:00 2001 From: philsmd Date: Sun, 13 Mar 2016 17:42:12 +0100 Subject: [PATCH] also add check for NULL pointers --- src/oclHashcat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 292df88e2..cb3eb3fb1 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -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;