diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-09-05 19:17:37 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-09-05 19:17:37 +0000 |
commit | db623d5c60c8e8ae1df02e649acce2d1c855f9e0 (patch) | |
tree | b98448af11678a859b83c32467b50787bf019def /sbin/iked | |
parent | eb3f3b53e98fd2d245054ab847d252eea3e147cb (diff) |
Use peer from policy, not from the acquire message.
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/ikev2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 0b538e57c93..c7351d746e7 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.253 2020/09/04 19:32:27 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.254 2020/09/05 19:17:36 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -6038,7 +6038,7 @@ ikev2_child_sa_acquire(struct iked *env, struct iked_flow *acquire) p->pol_name); if (ikev2_init_ike_sa_peer(env, p, - acquire->flow_peer, NULL) != 0) + &p->pol_peer, NULL) != 0) log_warnx("%s: failed to initiate a " "IKE_SA_INIT exchange for policy '%s'", __func__, p->pol_name); |