summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-02-26 23:03:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-02-27 08:26:01 +0100
commit22eec7802755ac83cfc59aa35992e6ea33adf0bc (patch)
tree3c421d6f7dd24a0b68a6d2ba1c3c15b3c332f789 /lib/vtls
parentaa31f9a8569299e672447e257d6caddfa15875a4 (diff)
downloadcurl-22eec7802755ac83cfc59aa35992e6ea33adf0bc.tar.gz
x509asn1.c: use correct format specifier for infof() call
Detected by Coverity Closes #10614
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/x509asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c
index 39e4fb33b..b69c162b6 100644
--- a/lib/vtls/x509asn1.c
+++ b/lib/vtls/x509asn1.c
@@ -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);