From 9826472d13116aec2860b83fe5f487a975af518a Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 3 May 2004 05:11:40 +0000 Subject: [PATCH] correct behaviour of key_getsavbyspi broken in rev 1.7; corrects problems with removing specific SPIs Submitted by: Bjoern A. Zeeb --- sys/netipsec/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index bced4e1bf87..10b219f5baa 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -2924,11 +2924,11 @@ key_getsavbyspi(sah, spi) } if (sav->spi == spi) - break; + return sav; } } - return sav; + return NULL; } /* -- 2.45.2