]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
x509asn1.c: use correct format specifier for infof() call
authorDaniel Stenberg <daniel@haxx.se>
Sun, 26 Feb 2023 22:03:33 +0000 (23:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Feb 2023 07:26:01 +0000 (08:26 +0100)
Detected by Coverity

Closes #10614

lib/vtls/x509asn1.c

index 39e4fb33bc37dec22c7c5024d6441321bfa8bb9c..b69c162b6934e5f51cd02e405024d63a9d3c8165 100644 (file)
@@ -1127,7 +1127,7 @@ CURLcode Curl_extract_certinfo(struct Curl_easy *data,
       return result;
   }
   if(!certnum)
-    infof(data, "   Version: %lu (0x%lx)", version + 1, version);
+    infof(data, "   Version: %u (0x%x)", version + 1, version);
 
   /* Serial number. */
   ccp = ASN1tostr(&cert.serialNumber, 0);