From: Alan T. DeKok Date: Wed, 12 Aug 2009 08:48:12 +0000 (+0200) Subject: Move restrictions on vendor ID from 32767 to 65535 X-Git-Tag: release_2_1_7~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c42985091a11aed859678a8af64c629c7e37cb;p=thirdparty%2Ffreeradius-server.git Move restrictions on vendor ID from 32767 to 65535 Now that "attr" is stored as an unsigned integer. Based on a patch from Rafael Ugolini --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 262c110e411..ac28b176f15 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -421,7 +421,7 @@ int dict_addvendor(const char *name, int value) size_t length; DICT_VENDOR *dv; - if (value >= 32767) { + if (value > 65535) { fr_strerror_printf("dict_addvendor: Cannot handle vendor ID larger than 65535"); return -1; } diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c index 3f0bad694fa..e4d8fb66d7b 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -226,8 +226,8 @@ static VALUE_PAIR *diameter2vp(REQUEST *request, SSL *ssl, return NULL; } - if (vendor > 32767) { - RDEBUG2("Cannot handle vendor Id greater than 32767"); + if (vendor > 65535) { + RDEBUG2("Cannot handle vendor Id greater than 65535"); pairfree(&first); return NULL; }