initialize the octet string to empty so that we don't free garbage on error

This commit is contained in:
Mark Andrews
2012-11-29 18:12:58 +11:00
parent fddb023637
commit 250296dd22
+3
View 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);