From: philsmd Date: Sun, 13 Mar 2016 16:42:12 +0000 (+0100) Subject: also add check for NULL pointers X-Git-Tag: v3.00-beta~176^2~1 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=b76495e0f53b745da17165ca096df38af010fb2a;p=hashcat.git also add check for NULL pointers --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 292df88..cb3eb3f 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;