[PATCH] x509asn1: fallback to dotted OID representation
authorBo Anderson <mail@boanderson.me>
Sun, 2 Jun 2024 13:18:20 +0000 (14:18 +0100)
committerSamuel Henrique <samueloph@debian.org>
Wed, 10 Jul 2024 21:36:04 +0000 (22:36 +0100)
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

lib/vtls/x509asn1.c

index 4564ea958aea2dafe9515394c9cde5b338370393..150dfd21de4589fe2013eaaa9b06e02712341332 100644 (file)
@@ -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);
       }
     }