Skip to content

Commit

Permalink
Merge pull request #570 from amajoke/fix_fuzzing_divide_by_zero
Browse files Browse the repository at this point in the history
Fix divide by zero in fuzzing
  • Loading branch information
fklassen committed Jun 3, 2020
2 parents f35e77b + 8fa67aa commit acd97e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcpedit/fuzzing.c
Expand Up @@ -156,7 +156,7 @@ fuzzing(tcpedit_t *tcpedit, struct pcap_pkthdr *pkthdr,
break;
}

if (l4len < 1)
if (l4len <= 1)
goto done;

/* add some additional randomization */
Expand Down

0 comments on commit acd97e8

Please sign in to comment.