Destroy IKE_SA after failed XAuth authentication.
This commit is contained in:
1 parent
3d44d735c6
commit
4dbd81c669
1 file changed
+5
-2
@@ -277,9 +277,12 @@ METHOD(task_t, process_i_status, status_t,
|
|||||||
DBG1(DBG_IKE, "received invalid XAUTH status response");
|
DBG1(DBG_IKE, "received invalid XAUTH status response");
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
if (this->status != XAUTH_OK)
|
||||||
|
{
|
||||||
|
DBG1(DBG_IKE, "destroying IKE_SA after failed XAuth authentication");
|
||||||
|
return FAILED;
|
||||||
|
}
|
||||||
establish(this);
|
establish(this);
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user