]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
initialize the octet string to empty so that we don't free garbage on error
authorMark Andrews <marka@isc.org>
Thu, 29 Nov 2012 07:11:05 +0000 (18:11 +1100)
committerMark Andrews <marka@isc.org>
Thu, 29 Nov 2012 07:11:05 +0000 (18:11 +1100)
lib/dns/spnego.c

index d70130bb244b6868bfd2d54db848d414702c3fb6..4136cbb020fb2662305b1f79f730b236625b1d78 100644 (file)
@@ -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);