summaryrefslogtreecommitdiffstats
path: root/sys/netkey
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-08-06 19:34:41 +0000
committerume <ume@FreeBSD.org>2001-08-06 19:34:41 +0000
commit08fac6b9992aa1d3fb69868cd8d167714c91cfc5 (patch)
treecbdcfc065c1ed87f1d7218fdfcb22c396a0dd733 /sys/netkey
parent08477b73735e440d7cb45c1cf8343370e3211edf (diff)
downloadFreeBSD-src-08fac6b9992aa1d3fb69868cd8d167714c91cfc5.zip
FreeBSD-src-08fac6b9992aa1d3fb69868cd8d167714c91cfc5.tar.gz
do not play too much trick with evaluation order. from netbsd
Obtained from: KAME
Diffstat (limited to 'sys/netkey')
-rw-r--r--sys/netkey/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netkey/key.c b/sys/netkey/key.c
index 223009e..17c3055 100644
--- a/sys/netkey/key.c
+++ b/sys/netkey/key.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: key.c,v 1.189 2001/05/31 15:02:56 sakane Exp $ */
+/* $KAME: key.c,v 1.190 2001/06/04 22:35:10 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1879,7 +1879,7 @@ key_getnewspid()
/* when requesting to allocate spi ranged */
while (count--) {
- newid = (policy_id = (policy_id == ~0 ? 1 : ++policy_id));
+ newid = (policy_id = (policy_id == ~0 ? 1 : policy_id + 1));
if ((sp = key_getspbyid(newid)) == NULL)
break;
OpenPOWER on IntegriCloud