From 0a123fdb68214e34a0e616c7e271f81b35efb709 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 12 Mar 2014 11:57:55 +0000 Subject: unbreak config-address w/o pool; ok mikeb@ --- sbin/iked/ikev2.c | 4 ++-- 1 file 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 @@ -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); /* -- cgit v1.2.3