ikev1: Don't inherit children if INITITAL_CONTACT was seen
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Martin Willi
parent
11b42933bf
commit
1201ddcbc5
@@ -1783,7 +1783,10 @@ static status_t enforce_replace(private_ike_sa_manager_t *this,
|
|||||||
if (is_ikev1_reauth(duplicate, host))
|
if (is_ikev1_reauth(duplicate, host))
|
||||||
{
|
{
|
||||||
/* looks like a reauthentication attempt */
|
/* looks like a reauthentication attempt */
|
||||||
adopt_children(duplicate, new);
|
if (!new->has_condition(new, COND_INIT_CONTACT_SEEN))
|
||||||
|
{
|
||||||
|
adopt_children(duplicate, new);
|
||||||
|
}
|
||||||
/* For IKEv1 we have to delay the delete for the old IKE_SA. Some
|
/* For IKEv1 we have to delay the delete for the old IKE_SA. Some
|
||||||
* peers need to complete the new SA first, otherwise the quick modes
|
* peers need to complete the new SA first, otherwise the quick modes
|
||||||
* might get lost. */
|
* might get lost. */
|
||||||
|
|||||||
Reference in New Issue
Block a user