diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-26 17:38:13 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-26 17:38:13 +0000 |
commit | 21ee3d3682284f593a498e8a64542181bf88eef5 (patch) | |
tree | 3731fd1e52db3bf5969317ce2c34b41ee8411362 /sys/netinet | |
parent | 61c871e55e72317ec8c7ee64d242e654ccac135e (diff) |
Check for associated socket.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
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); |