Reset the output value on error in _gnutls_x509_dn_to_string()

Reported by Kurt Roeckx.
parent d2f702a2
Pipeline #81465 skipped
......@@ -469,6 +469,7 @@ _gnutls_x509_dn_to_string(const char *oid, void *value,
if (ret < 0) {
gnutls_assert();
gnutls_free(str->data);
str->data = NULL;
return ret;
}
str->size = size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment