summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-24 22:50:58 +0000
committerangelos <angelos@openbsd.org>2001-06-24 22:50:58 +0000
commit6ace879d24f37bdd68a8471ef0f36d04b87f7f05 (patch)
treedbc7013b23bd2216589c6c69e46ea9f9ce6226b6 /sys/netinet/tcp_input.c
parentUse pool for state, tree, nat, rdr, etc. (diff)
downloadwireguard-openbsd-6ace879d24f37bdd68a8471ef0f36d04b87f7f05.tar.xz
wireguard-openbsd-6ace879d24f37bdd68a8471ef0f36d04b87f7f05.zip
Save tdb_remote_auth on the PCB on latching; also save information on
UDP PCB's if the socket is connected.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 77e378964e7..9b9beb37ef8 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.97 2001/06/23 18:54:44 angelos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.98 2001/06/24 22:50:58 angelos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -839,6 +839,12 @@ findpcb:
tdb->tdb_remote_cred;
tdb->tdb_remote_cred->ref_count++;
}
+ if (inp->inp_ipsec_remoteauth == NULL &&
+ tdb->tdb_remote_auth != NULL) {
+ inp->inp_ipsec_remoteauth =
+ tdb->tdb_remote_auth;
+ tdb->tdb_remote_auth->ref_count++;
+ }
} else { /* Just reset */
TAILQ_REMOVE(&inp->inp_tdb_in->tdb_inp_in, inp,
inp_tdb_in_next);