summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread/stack/stack.c
diff options
context:
space:
mode:
authorlteo <lteo@openbsd.org>2014-08-10 03:26:20 +0000
committerlteo <lteo@openbsd.org>2014-08-10 03:26:20 +0000
commit74c8ac698c9829f14fb658bb2ff2fe17503505fe (patch)
tree1300db28144d83e6939f240ca124d99311d83a3e /regress/lib/libpthread/stack/stack.c
parentFormat time_t with %lld after casting to long long (diff)
downloadwireguard-openbsd-74c8ac698c9829f14fb658bb2ff2fe17503505fe.tar.xz
wireguard-openbsd-74c8ac698c9829f14fb658bb2ff2fe17503505fe.zip
Fix the length check for reinjected ICMP packets: sizeof(struct icmp) is
28 but an ICMP packet can be as small as 8 bytes (e.g. an ICMP echo request packet with no payload), so check against ICMP_MINLEN instead. Prior to this fix, divert(4) would erroneously discard valid ICMP packets that are shorter than 20 bytes. ICMPv6 is not affected, so this change applies to ICMP over IPv4 only. ok florian@ henning@
Diffstat (limited to 'regress/lib/libpthread/stack/stack.c')
0 files changed, 0 insertions, 0 deletions