Use correct variable to look up attributes in the dictionary
authorAlan T. DeKok <aland@freeradius.org>
Thu, 10 Jun 2010 08:29:09 +0000 (10:29 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 10 Jun 2010 08:29:09 +0000 (10:29 +0200)
2.1.x use "attribute = attr << 16 | vendor".  In 2.2, we can
use (attr, vendor) directly

src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index 523bb13..772edc3 100644 (file)
@@ -76,7 +76,6 @@ static int diameter_verify(REQUEST *request,
                 */
                offset = 8;
                if ((length & (1 << 31)) != 0) {
-                       int attribute;
                        uint32_t vendor;
                        DICT_ATTR *da;
 
@@ -88,7 +87,7 @@ static int diameter_verify(REQUEST *request,
                                return 0;
                        }
 
-                       da = dict_attrbyvalue(attribute, vendor);
+                       da = dict_attrbyvalue(attr, vendor);
 
                        /*
                         *      SHOULD check ((length & (1 << 30)) != 0)