Reject GPSK-3 if ID_Server in it does not match with the value in GPSK-1
authorJouni Malinen <j@w1.fi>
Sun, 23 Nov 2008 18:06:13 +0000 (20:06 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Nov 2008 18:06:13 +0000 (20:06 +0200)
src/eap_peer/eap_gpsk.c

index 879dde6..73bd191 100644 (file)
@@ -444,6 +444,7 @@ const u8 * eap_gpsk_validate_id_server(struct eap_gpsk_data *data,
                                  data->id_server, data->id_server_len);
                wpa_hexdump_ascii(MSG_DEBUG, "EAP-GPSK: ID_Server in GPSK-3",
                                  pos, len);
+               return NULL;
        }
 
        pos += len;