diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2022-01-04 06:32:41 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2022-01-04 06:32:41 +0000 |
commit | 5d6e7202e6690669e352037c1f4351c733015946 (patch) | |
tree | 17490e1e2d4a630c0d7a97218c9b67dc1e507c81 /sys/netinet6 | |
parent | 6e5f0d60461fd89bf6c2075b8faa250346476489 (diff) |
Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list and
trees. ipsp_ids_lookup() returns `ids' with bumped reference
counter. original diff from mvs
ok mvs
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index ba3e076b474..f9bfa9b5000 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.266 2022/01/02 22:36:04 jsg Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.267 2022/01/04 06:32:40 yasuoka Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -2757,7 +2757,7 @@ ip6_output_ipsec_lookup(struct mbuf *m, struct inpcb *inp, struct tdb **tdbout) /* Do we have any pending SAs to apply ? */ error = ipsp_spd_lookup(m, AF_INET6, sizeof(struct ip6_hdr), - IPSP_DIRECTION_OUT, NULL, inp, &tdb, 0); + IPSP_DIRECTION_OUT, NULL, inp, &tdb, NULL); if (error || tdb == NULL) { *tdbout = NULL; return error; |