x509asn1: ASN1tostr() should fail when 'constructed' is set
This is a regression from my refactor in623c3a8fa0(#12808) Follow-up to623c3a8fa0Closes #13972
This commit is contained in:
parent
dc497d7b8f
commit
cb96ca1b64
@ -599,7 +599,7 @@ static CURLcode ASN1tostr(struct dynbuf *store,
|
|||||||
{
|
{
|
||||||
CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
|
CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
|
||||||
if(elem->constructed)
|
if(elem->constructed)
|
||||||
return CURLE_OK; /* No conversion of structured elements. */
|
return result; /* No conversion of structured elements. */
|
||||||
|
|
||||||
if(!type)
|
if(!type)
|
||||||
type = elem->tag; /* Type not forced: use element tag as type. */
|
type = elem->tag; /* Type not forced: use element tag as type. */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user