x509asn1.c: use correct format specifier for infof() call

Detected by Coverity

Closes #10614
This commit is contained in:
Daniel Stenberg 2023-02-26 23:03:33 +01:00
parent aa31f9a856
commit 22eec78027
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

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