mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue