chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d25a3e
)
pathmtu/pathmtu.c: Check against UDP header length, not pointer size.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 14 Sep 2017 12:25:12 +0000
(13:25 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 28 Jun 2018 23:26:39 +0000
(
00:26
+0100)
pathmtu/pathmtu.c
patch
|
blob
|
blame
|
history
diff --git
a/pathmtu/pathmtu.c
b/pathmtu/pathmtu.c
index 5570278738421abaeb011ef7562e3d867efb6bb2..4e8f568fb33f295e5c52d054e59c814407f4fca8 100644
(file)
--- a/
pathmtu/pathmtu.c
+++ b/
pathmtu/pathmtu.c
@@
-616,7
+616,7
@@
static int raw_selproc(void *stv, fd_set *fd_in, struct probestate *ps)
n -= sizeof(*ip);
udp = (struct udphdr *)(ip + 1);
- if (n < sizeof(udp) || udp->uh_sport != st->me.sin.sin_port ||
+ if (n < sizeof(
*
udp) || udp->uh_sport != st->me.sin.sin_port ||
udp->uh_dport != st->a.sin.sin_port)
goto skip_icmp;
n -= sizeof(*udp);