Skip to content
Permalink
Browse files Browse the repository at this point in the history
Buddy-ng: Fixed segmentation fault (Closes #15 on GitHub).
git-svn-id: http://svn.aircrack-ng.org/trunk@2418 28c6078b-6c39-48e3-add9-af49d547ecab
  • Loading branch information
Mister-X- committed Oct 3, 2014
1 parent 091b153 commit da08723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/buddy-ng.c
Expand Up @@ -83,6 +83,8 @@ int handle(int s, unsigned char* data, int len, struct sockaddr_in *s_in)
*cmd++ = htons(S_CMD_PACKET);
*cmd++ = *pid;
plen = len - 2;
if (plen < 0)
return 0;

last_id = ntohs(*pid);
if (last_id > 20000)
Expand Down

0 comments on commit da08723

Please sign in to comment.