summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 44c7820d27d..a563f06be55 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.82 2002/06/26 16:37:58 angelos Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.83 2002/06/26 17:38:12 angelos Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -187,7 +187,7 @@ udp_check_ipsec(m, inp, srcsa, iphlen)
}
/* Latch SA only if the socket is connected. */
- if (inp->inp_tdb_in != tdb &&
+ if (inp->inp_tdb_in != tdb && inp->inp_socket != NULL &&
(inp->inp_socket->so_state & SS_ISCONNECTED)) {
if (tdb) {
tdb_add_inp(tdb, inp, 1);