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
@ -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…
Reference in New Issue
Block a user