From: Alan T. DeKok Date: Mon, 26 Dec 2011 17:39:53 +0000 (-0500) Subject: Remove compiler warning X-Git-Tag: release_3_0_0_beta0~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844d93a67cb6d8cb92afe17885df3ade9c6f89be;p=thirdparty%2Ffreeradius-server.git Remove compiler warning --- diff --git a/src/lib/dict.c b/src/lib/dict.c index bbd94d8a1e8..9c166b1fb03 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -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;