From: Bo Anderson Date: Sun, 2 Jun 2024 13:18:20 +0000 (+0100) Subject: x509asn1: fallback to dotted OID representation X-Git-Tag: curl-8_9_0~328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aa1d412b814a40868558da51a6ab28ce1384a58;p=thirdparty%2Fcurl.git x509asn1: fallback to dotted OID representation Reported-by: Luke Hamburg Fixes #13845 Closes #13858 --- diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c index 4564ea958a..150dfd21de 100644 --- a/lib/vtls/x509asn1.c +++ b/lib/vtls/x509asn1.c @@ -469,7 +469,7 @@ static CURLcode OID2str(struct dynbuf *store, if(op) result = Curl_dyn_add(store, op->textoid); else - result = CURLE_BAD_FUNCTION_ARGUMENT; + result = Curl_dyn_add(store, Curl_dyn_ptr(&buf)); Curl_dyn_free(&buf); } }