]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Go to next attribute if we can't encode this one. Fixes #1533
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Feb 2016 16:47:49 +0000 (11:47 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Feb 2016 16:47:49 +0000 (11:47 -0500)
src/lib/radius.c

index 8740dc5d3b4fef223fb3e6c701f36b614ef9a939..02cbe787237fa17f50eb5ae663930137eab7b40f 100644 (file)
@@ -1704,7 +1704,10 @@ int rad_vp2attr(RADIUS_PACKET const *packet, RADIUS_PACKET const *original,
         *      RFC format attributes take the fast path.
         */
        if (!vp->da->vendor) {
-               if (vp->da->attr > 255) return 0;
+               if (vp->da->attr > 255) {
+                       *pvp = vp->next;
+                       return 0;
+               }
 
                return rad_vp2rfc(packet, original, secret, pvp,
                                  start, room);