summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-02-25 14:08:41 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-02-25 14:08:41 +0000
commit9327ee33bf3a26b3256724d79f974d4c96c13700 (patch)
tree5e0891ee4d8be47e81d5bac34cccf9a47680b9ca /sys/netinet/tcp_subr.c
parenta4910cd21c35aa00ea8bed7dded8d513f6b40716 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index f6708b3579af..d92cbf54a31d 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -484,7 +484,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
m->m_pkthdr.len = tlen;
m->m_pkthdr.rcvif = (struct ifnet *) 0;
#ifdef MAC
- if (tp != NULL) {
+ if (tp != NULL && tp->t_inpcb != NULL) {
/*
* Packet is associated with a socket, so allow the
* label of the response to reflect the socket label.