Merge pull request #426 from philsmd/master
authorJens Steube <jens.steube@gmail.com>
Fri, 8 Jul 2016 12:33:10 +0000 (14:33 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Jul 2016 12:33:10 +0000 (14:33 +0200)
fixes -m #424: problem removing multiple already found WPA hashes

src/hashcat.c

index 9c5782d..b7bdff0 100644 (file)
@@ -13018,6 +13018,7 @@ int main (int argc, char **argv)
                   // here we have in line_buf: ESSID:MAC1:MAC2   (without the plain)
                   // manipulate salt_buf
 
+                  memset (line_buf_cpy, 0, HCBUFSIZ);
                   memcpy (line_buf_cpy, line_buf, i);
 
                   char *mac2_pos = strrchr (line_buf_cpy, ':');