From: Arran Cudbard-Bell Date: Tue, 9 Sep 2014 12:07:21 +0000 (-0400) Subject: TLV memory should be zerod in DHCP suboption encoder X-Git-Tag: release_3_0_5~587 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4fb4a5ddb641eeb668ab9eb6ca622632d4ae196;p=thirdparty%2Ffreeradius-server.git TLV memory should be zerod in DHCP suboption encoder --- diff --git a/src/modules/proto_dhcp/dhcp.c b/src/modules/proto_dhcp/dhcp.c index a5880b743e8..ee567247d7b 100644 --- a/src/modules/proto_dhcp/dhcp.c +++ b/src/modules/proto_dhcp/dhcp.c @@ -1320,7 +1320,7 @@ static VALUE_PAIR *fr_dhcp_vp2suboption(TALLOC_CTX *ctx, vp_cursor_t *cursor) tlv->length += vp->length; } - tlv->vp_tlv = talloc_array(tlv, uint8_t, tlv->length); + tlv->vp_tlv = talloc_zero_array(tlv, uint8_t, tlv->length); if (!tlv->vp_tlv) { talloc_free(tlv); return NULL;