From: Alan T. DeKok Date: Thu, 11 Jun 2015 15:41:33 +0000 (-0400) Subject: If the TLVs are malformed, they're unknown X-Git-Tag: release_3_0_9~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd95df9754f0603765fa99233a5d5c651bd18d4;p=thirdparty%2Ffreeradius-server.git If the TLVs are malformed, they're unknown --- diff --git a/src/modules/proto_dhcp/dhcp.c b/src/modules/proto_dhcp/dhcp.c index 473ccad1fbf..fd2ac47a544 100644 --- a/src/modules/proto_dhcp/dhcp.c +++ b/src/modules/proto_dhcp/dhcp.c @@ -652,6 +652,7 @@ static int fr_dhcp_decode_vsa(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t const * return 0; malformed: + pair2unknown(*tlv); pairmemcpy(*tlv, data, len); return 0; @@ -806,6 +807,7 @@ static int fr_dhcp_decode_suboption(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t c return 0; malformed: + pair2unknown(*tlv); pairmemcpy(*tlv, data, len); return 0;