summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-05-03 05:11:40 +0000
committersam <sam@FreeBSD.org>2004-05-03 05:11:40 +0000
commit7cd921a9fc2f726a5299e7995bb8d52ab24a4aa0 (patch)
tree591e9237c3aac54e66f7b40434078b74caedfa4c /sys
parente99f44ed74133193d66ff3c313f3c389b92838fe (diff)
downloadFreeBSD-src-7cd921a9fc2f726a5299e7995bb8d52ab24a4aa0.zip
FreeBSD-src-7cd921a9fc2f726a5299e7995bb8d52ab24a4aa0.tar.gz
correct behaviour of key_getsavbyspi broken in rev 1.7; corrects problems with
removing specific SPIs Submitted by: Bjoern A. Zeeb
Diffstat (limited to 'sys')
-rw-r--r--sys/netipsec/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index bced4e1..10b219f 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;
}
/*
OpenPOWER on IntegriCloud