ike-auth: Remove unnecessary case statement

This commit is contained in:
Tobias Brunner 2018-09-11 11:33:05 +02:00
parent a0c302f878
commit 85afe81e1f
1 changed files with 2 additions and 4 deletions

View File

@ -458,13 +458,11 @@ static bool parse_ppk_identity(notify_payload_t *notify, identification_t **id)
}
switch (data.ptr[0])
{
case PPK_ID_OPAQUE:
/* we currently don't support this */
default:
return FALSE;
case PPK_ID_FIXED:
data = chunk_skip(data, 1);
break;
default:
return FALSE;
}
*id = identification_create_from_data(data);
return TRUE;