mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-22 00:01:45 -05:00
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:
parent
eed20c21d3
commit
01f462f0d3
@ -890,6 +890,20 @@ METHOD(task_t, pre_process_i, status_t,
|
||||
|
||||
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:
|
||||
{
|
||||
identification_t *gateway;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user