summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-01 12:51:10 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-01 12:51:10 +0000
commit5c5ac9bf6824a286285b5c684059d4c656192580 (patch)
treec8935829ff8ca773828d17e86fcbcf720420c7a1 /sys/netinet/tcp_input.c
parente229d53f37a7c090cecfcb6c1e82fa1f2355dc91 (diff)
Let ipsp_spd_lookup() return an error instead of a TDB. The TDB
is not always needed, but the error value is necessary for the caller. As TDB should be refcounted, it makes not sense to always return it. Pass an output pointer for the TDB which can be NULL. OK mvs@ tobhe@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index e6744326243..5b8af422222 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.372 2021/11/25 23:03:05 deraadt Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.373 2021/12/01 12:51:09 bluhm Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -578,8 +578,8 @@ findpcb:
tdb = gettdb(tdbi->rdomain, tdbi->spi,
&tdbi->dst, tdbi->proto);
}
- ipsp_spd_lookup(m, af, iphlen, &error, IPSP_DIRECTION_IN,
- tdb, inp, 0);
+ error = ipsp_spd_lookup(m, af, iphlen, IPSP_DIRECTION_IN,
+ tdb, inp, NULL, 0);
tdb_unref(tdb);
if (error) {
tcpstat_inc(tcps_rcvnosec);