From: Bo Anderson Date: Sun, 2 Jun 2024 13:18:20 +0000 (+0100) Subject: [PATCH] x509asn1: fallback to dotted OID representation X-Git-Tag: archive/raspbian/8.8.0-4+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2f56fffa77170989248eeb0bec8affdab7c04c8b;p=curl.git [PATCH] x509asn1: fallback to dotted OID representation Reported-by: Luke Hamburg Fixes #13845 Closes #13858 Origin: upstream, https://github.com/curl/curl/commit/9aa1d412b814a40868558da51a6ab28ce1384a58 Bug: https://github.com/curl/curl/issues/13845 Bug-Debian: https://bugs.debian.org/1075796 Last-Update: 2024-07-05 Gbp-Pq: Name fix-x509asn1-fallback-to-dotted-OID-representation.patch --- diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c index 4564ea95..150dfd21 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); } }