Remove unused variable
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_leap / rlm_eap_leap.c
index 12ea227..f62480f 100644 (file)
@@ -94,7 +94,6 @@ static int leap_authenticate(UNUSED void *instance, EAP_HANDLER *handler)
        leap_session_t  *session;
        LEAP_PACKET     *packet;
        LEAP_PACKET     *reply;
-       char*           username;
        VALUE_PAIR      *password;
 
        if (!handler->opaque) {
@@ -110,8 +109,6 @@ static int leap_authenticate(UNUSED void *instance, EAP_HANDLER *handler)
        if (!(packet = eapleap_extract(handler->eap_ds)))
                return 0;
 
-       username = (char *)handler->request->username->vp_strvalue;
-
        /*
         *      The password is never sent over the wire.
         *      Always get the configured password, for each user.