]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Made more coherent
authorAlan T. DeKok <aland@freeradius.org>
Wed, 14 Sep 2011 15:33:46 +0000 (17:33 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 14 Sep 2011 15:33:46 +0000 (17:33 +0200)
src/main/auth.c

index 79a3e80b751b3b8a16b598cbb48779dfd4802ce0..e01a684b8c9038c8c8e48349daeeefb7d24c12de 100644 (file)
@@ -187,8 +187,8 @@ static int rad_check_password(REQUEST *request)
                DICT_VALUE *dv;
                auth_type = auth_type_pair->vp_integer;
                auth_type_count++;
-               dv = dict_valbyattr(auth_type_pair->attribute,
-                                               auth_type_pair->vp_integer, 0);
+               dv = dict_valbyattr(PW_AUTH_TYPE,
+                                   auth_type_pair->vp_integer, 0);
 
                RDEBUG2("Found Auth-Type = %s",
                        (dv != NULL) ? dv->name : "?");