mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
x509asn1: ASN1tostr() should fail when 'constructed' is set
This is a regression from my refactor in623c3a8fa0
(#12808) Follow-up to623c3a8fa0
Closes #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;
|
||||
if(elem->constructed)
|
||||
return CURLE_OK; /* No conversion of structured elements. */
|
||||
return result; /* No conversion of structured elements. */
|
||||
|
||||
if(!type)
|
||||
type = elem->tag; /* Type not forced: use element tag as type. */
|
||||
|
Loading…
Reference in New Issue
Block a user