summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-12 10:59:53 +0000
committerangelos <angelos@openbsd.org>2001-06-12 10:59:53 +0000
commitcea4cf4a1297a023dcf1c5364687680071946169 (patch)
tree21a83323c67f2a058359542f1b08d64c724e130d /sys/netinet/tcp_input.c
parentmerge session_free into session_close() (diff)
downloadwireguard-openbsd-cea4cf4a1297a023dcf1c5364687680071946169.tar.xz
wireguard-openbsd-cea4cf4a1297a023dcf1c5364687680071946169.zip
IPsec-related socket options; these can be set/removed/retrieved, but
are not taken into consideration in anything just yet.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 103e4a03694..750b3e58b8f 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.93 2001/06/08 03:53:46 angelos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.94 2001/06/12 10:59:53 angelos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -734,9 +734,15 @@ findpcb:
newinp->inp_ipsec_remotecred = inp->inp_ipsec_remotecred;
inp->inp_ipsec_remotecred->ref_count++;
}
- if (inp->inp_ipsec_auth != NULL) {
- newinp->inp_ipsec_auth = inp->inp_ipsec_auth;
- inp->inp_ipsec_auth->ref_count++;
+ if (inp->inp_ipsec_localauth != NULL) {
+ newinp->inp_ipsec_localauth
+ = inp->inp_ipsec_localauth;
+ inp->inp_ipsec_localauth->ref_count++;
+ }
+ if (inp->inp_ipsec_remoteauth != NULL) {
+ newinp->inp_ipsec_remoteauth
+ = inp->inp_ipsec_remoteauth;
+ inp->inp_ipsec_remoteauth->ref_count++;
}
}
#endif /* IPSEC */