Skip to content

Commit

Permalink
Fix swap-direction mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi committed Oct 10, 2024
1 parent bb01dcb commit 703d44f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pl7m.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ static void swap_direction(struct m_pkt *p)
case IPPROTO_UDP:
udp_h = (struct udphdr *)(p->raw_data + p->l4_offset);
tmp_port = udp_h->source;
udp_h->source = udp_h->source;
udp_h->source = udp_h->dest;
udp_h->dest = tmp_port;
break;
case IPPROTO_TCP:
Expand Down
Binary file modified tests/results/line.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/line_2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/snapchat_call.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/stun.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/stun_dtls.pcap.fuzzed
Binary file not shown.

0 comments on commit 703d44f

Please sign in to comment.