ikev2: Ignore COOKIE notifies we already received
This could be due to a delayed response to an IKE_SA_INIT retransmit. Fixes #2837.
This commit is contained in:
@@ -890,6 +890,20 @@ METHOD(task_t, pre_process_i, status_t,
|
|||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
case COOKIE:
|
||||||
|
{
|
||||||
|
chunk_t cookie;
|
||||||
|
|
||||||
|
cookie = notify->get_notification_data(notify);
|
||||||
|
if (chunk_equals(cookie, this->cookie))
|
||||||
|
{
|
||||||
|
DBG1(DBG_IKE, "ignore response with duplicate COOKIE "
|
||||||
|
"notify");
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
|
return FAILED;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case REDIRECT:
|
case REDIRECT:
|
||||||
{
|
{
|
||||||
identification_t *gateway;
|
identification_t *gateway;
|
||||||
|
|||||||
Reference in New Issue
Block a user