Fixes for 2.2 API
authorAlan T. DeKok <aland@freeradius.org>
Sat, 7 Aug 2010 07:48:24 +0000 (09:48 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 7 Aug 2010 07:48:24 +0000 (09:48 +0200)
src/modules/rlm_eap/rlm_eap.c

index a4391e6..974fd0b 100644 (file)
@@ -257,7 +257,7 @@ static int eap_authenticate(void *instance, REQUEST *request)
 
        inst = (rlm_eap_t *) instance;
 
-       if (!pairfind(request->packet->vps, PW_EAP_MESSAGE)) {
+       if (!pairfind(request->packet->vps, PW_EAP_MESSAGE, 0)) {
                RDEBUG("ERROR: You set 'Auth-Type = EAP' for a request that does not contain an EAP-Message attribute!");
                return RLM_MODULE_INVALID;
        }