ike-auth: Remove unnecessary case statement
authorTobias Brunner <tobias@strongswan.org>
Tue, 11 Sep 2018 09:33:05 +0000 (11:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Sep 2018 16:18:50 +0000 (18:18 +0200)
src/libcharon/sa/ikev2/tasks/ike_auth.c

index 1e462f0..b055ff0 100644 (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;