diff options
| author | 2002-06-26 17:38:12 +0000 | |
|---|---|---|
| committer | 2002-06-26 17:38:12 +0000 | |
| commit | 47da2d7617504dcf5a48f173f07103348d22b2ad (patch) | |
| tree | 643f89970476105edeb2c06fc737a3643aac6e2d /sys/netinet/udp_usrreq.c | |
| parent | ieee1394 for i386 too... (diff) | |
| download | wireguard-openbsd-47da2d7617504dcf5a48f173f07103348d22b2ad.tar.xz wireguard-openbsd-47da2d7617504dcf5a48f173f07103348d22b2ad.zip | |
Check for associated socket.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -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); |
