Skip to content
Permalink
Browse files Browse the repository at this point in the history
Aireplay-ng: Fixed tcp_test stack overflow (Closes #14 on GitHub).
git-svn-id: http://svn.aircrack-ng.org/trunk@2417 28c6078b-6c39-48e3-add9-af49d547ecab
  • Loading branch information
Mister-X- committed Oct 3, 2014
1 parent ff70494 commit 091b153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aireplay-ng.c
Expand Up @@ -5398,6 +5398,8 @@ int tcp_test(const char* ip_str, const short port)
if( (unsigned)caplen == sizeof(nh))
{
len = ntohl(nh.nh_len);
if (len > 1024 || len < 0)
continue;
if( nh.nh_type == 1 && i==0 )
{
i=1;
Expand Down

0 comments on commit 091b153

Please sign in to comment.