diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-06-23 09:13:15 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-06-23 09:13:15 +0000 |
commit | c2c8b26056f49e8e24af3791edca02ef39e09166 (patch) | |
tree | b97f09c81a53e0fdd2b198c58d9a04766ac1eb81 /sys/netinet/sctputil.c | |
parent | 0ef70a8b8b78a92920cb0d07f27d0c1d5d151ae5 (diff) | |
download | FreeBSD-src-c2c8b26056f49e8e24af3791edca02ef39e09166.zip FreeBSD-src-c2c8b26056f49e8e24af3791edca02ef39e09166.tar.gz |
Don't consider the socket when processing an incoming ICMP/ICMP6 packet,
which was triggered by an SCTP packet. Whether a socket exists, is just
not relevant.
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 3f6ec55..ffb58ed 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -6965,8 +6965,7 @@ sctp_recv_icmp_tunneled_packet(int cmd, struct sockaddr *sa, void *vip, void *ct SCTP_DEFAULT_VRFID); if ((stcb != NULL) && (net != NULL) && - (inp != NULL) && - (inp->sctp_socket != NULL)) { + (inp != NULL)) { /* Check the UDP port numbers */ if ((udp->uh_dport != net->port) || (udp->uh_sport != htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)))) { @@ -7092,8 +7091,7 @@ sctp_recv_icmp6_tunneled_packet(int cmd, struct sockaddr *sa, void *d, void *ctx &inp, &net, 1, SCTP_DEFAULT_VRFID); if ((stcb != NULL) && (net != NULL) && - (inp != NULL) && - (inp->sctp_socket != NULL)) { + (inp != NULL)) { /* Check the UDP port numbers */ if ((udp.uh_dport != net->port) || (udp.uh_sport != htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)))) { |