Remove compiler warning
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Dec 2011 17:39:53 +0000 (12:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Dec 2011 17:40:47 +0000 (12:40 -0500)
src/lib/dict.c

index bbd94d8..9c166b1 100644 (file)
@@ -1413,7 +1413,7 @@ static int process_attribute(const char* fn, const int line,
                /*
                 *      TLV's can be only one octet.
                 */
-               if ((value <= 0) || ((value & ~fr_attr_mask[tlv_depth]) != 0)) {
+               if ((value == 0) || ((value & ~fr_attr_mask[tlv_depth]) != 0)) {
                        fr_strerror_printf( "dict_init: %s[%d]: sub-tlv has invalid attribute number",
                                            fn, line);
                        return -1;