summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2014-03-12 11:57:55 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2014-03-12 11:57:55 +0000
commit0a123fdb68214e34a0e616c7e271f81b35efb709 (patch)
tree4222d25d54e478b46f8afb82777fa8fe4448a579
parent3527f6875f6ae5b935298f27c5a925baf591deb1 (diff)
unbreak config-address w/o pool; ok mikeb@
-rw-r--r--sbin/iked/ikev2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 025ab89b1f3..f3fe1975f82 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.97 2014/02/26 14:09:15 markus Exp $ */
+/* $OpenBSD: ikev2.c,v 1.98 2014/03/12 11:57:54 markus Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -4562,7 +4562,7 @@ ikev2_cp_setaddr(struct iked *env, struct iked_sa *sa)
break;
}
}
- if (ikecfg == NULL)
+ if (i == pol->pol_ncfg)
return (0);
/*