fixed EAP-MD5 to accept Name attribute in challenge

This commit is contained in:
Martin Willi
2007-12-18 10:44:44 +00:00
parent fdc7c943f9
commit b8461a37db
+2 -1
View File
@@ -199,7 +199,8 @@ static status_t process_server(private_eap_md5_t *this,
data = in->get_data(in);
response = chunk_skip(data, 6);
if (!chunk_equals(response, expected))
if (response.len < expected.len ||
!memeq(response.ptr, expected.ptr, expected.len))
{
chunk_free(&expected);
DBG1(DBG_IKE, "EAP-MD5 verification failed");