From: Mark Andrews Date: Thu, 29 Nov 2012 07:11:05 +0000 (+1100) Subject: initialize the octet string to empty so that we don't free garbage on error X-Git-Tag: v9.10.0a1~691 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d4af2cc0db3b5533aa386ebc1188f39fc9523b6e;p=thirdparty%2Fbind9.git initialize the octet string to empty so that we don't free garbage on error --- diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c index d70130bb244..4136cbb020f 100644 --- a/lib/dns/spnego.c +++ b/lib/dns/spnego.c @@ -1000,6 +1000,9 @@ decode_octet_string(const unsigned char *p, size_t len, int e; size_t slen; + k->data = NULL; + k->length = 0; + e = der_match_tag(p, len, ASN1_C_UNIV, PRIM, UT_OctetString, &l); if (e) return (e);