Remove unused variable
authorAlan T. DeKok <aland@freeradius.org>
Sat, 2 Mar 2013 20:46:55 +0000 (12:46 -0800)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Mar 2013 20:56:15 +0000 (12:56 -0800)
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.