]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove final restrictions on attributes > 32767
authorAlan T. DeKok <aland@freeradius.org>
Wed, 12 Aug 2009 09:12:49 +0000 (11:12 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 12 Aug 2009 09:12:49 +0000 (11:12 +0200)
src/include/libradius.h
src/lib/dict.c

index a01780240bbb599894803d603d8bf692cba5d871..95535446390e421ef125639d5ae95c111e996c5b 100644 (file)
@@ -59,7 +59,7 @@ RCSIDH(libradius_h, "$Id$")
 #define CHAP_VALUE_LENGTH       16
 #define MAX_STRING_LEN         254     /* RFC2138: string 0-253 octets */
 
-#  define VENDOR(x)            ((x >> 16) & 0x7fff)
+#  define VENDOR(x)            ((x >> 16) & 0xffff)
 
 #ifdef _LIBRADIUS
 #  define AUTH_HDR_LEN         20
index ac28b176f157ef68fae382fefc8c3f81ed23a27a..3fa2f0da8f9b6a07fe9aa55df9eec8bcbb6de489 100644 (file)
@@ -1725,7 +1725,7 @@ DICT_ATTR *dict_attrbyvalue(unsigned int attr)
        if ((attr > 0) && (attr < 256)) return dict_base_attrs[attr];
 
        dattr.attr = attr;
-       dattr.vendor = VENDOR(attr) & 0x7fff;
+       dattr.vendor = VENDOR(attr);
 
        return fr_hash_table_finddata(attributes_byvalue, &dattr);
 }