]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
VSA and VENDOR attributes need the same encoder logic as TLV
authorNick Porter <nick@portercomputing.co.uk>
Thu, 22 Aug 2024 07:06:44 +0000 (08:06 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 22 Aug 2024 07:06:44 +0000 (08:06 +0100)
Allows for %internal.encode(&Vendor-Specific) or
%internal.encode(&Vendor-Specific.Vendor) and the children will be added
correctly.

src/protocols/internal/encode.c

index 1e8ef17519ec63996c131e4089b78df90dfc492c..66c60ed3b802c6f8571b8d8cbc538ca56854ce4f 100644 (file)
@@ -159,9 +159,6 @@ static ssize_t internal_encode(fr_dbuff_t *dbuff,
         */
        case FR_TYPE_VSA:
        case FR_TYPE_VENDOR:
-               slen = internal_encode(&value_dbuff, da_stack, depth + 1, cursor, encode_ctx);
-               if (slen < 0) return slen;
-               break;
 
        /*
         *      Children of TLVs are encoded in the context