diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-02-26 23:03:33 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-02-27 08:26:01 +0100 |
commit | 22eec7802755ac83cfc59aa35992e6ea33adf0bc (patch) | |
tree | 3c421d6f7dd24a0b68a6d2ba1c3c15b3c332f789 /lib/vtls | |
parent | aa31f9a8569299e672447e257d6caddfa15875a4 (diff) | |
download | curl-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.c | 2 |
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); |