]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
x509asn1: fallback to dotted OID representation
authorBo Anderson <mail@boanderson.me>
Sun, 2 Jun 2024 13:18:20 +0000 (14:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 2 Jun 2024 15:23:50 +0000 (17:23 +0200)
Reported-by: Luke Hamburg
Fixes #13845
Closes #13858

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);
       }
     }