mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:57:21 +03:00
x509asn1: use plain %x, not %lx, when the arg is an int
Pointed out by Coverity. Closes #10689
This commit is contained in:
parent
48cd032623
commit
6466071e8e
1 changed files with 1 additions and 1 deletions
|
|
@ -1118,7 +1118,7 @@ CURLcode Curl_extract_certinfo(struct Curl_easy *data,
|
|||
for(ccp = cert.version.beg; ccp < cert.version.end; ccp++)
|
||||
version = (version << 8) | *(const unsigned char *) ccp;
|
||||
if(data->set.ssl.certinfo) {
|
||||
ccp = curl_maprintf("%lx", version);
|
||||
ccp = curl_maprintf("%x", version);
|
||||
if(!ccp)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
result = Curl_ssl_push_certinfo(data, certnum, "Version", ccp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue