mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
x509asn1: mark msnprintf return as unchecked
We have lots of unchecked msnprintf calls, and this particular msnprintf call isn't more interesting than the others, but this one yields a Coverity warning so let's implicitly silence it. Going over the other invocations is probably a worthwhile project, but for now let's keep the static analyzers happy. Closes: #8831 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
462196e6b4
commit
bcf03dd213
@ -956,7 +956,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
|
||||
infof(data, " ECC Public Key (%lu bits)", len);
|
||||
if(data->set.ssl.certinfo) {
|
||||
char q[sizeof(len) * 8 / 3 + 1];
|
||||
msnprintf(q, sizeof(q), "%lu", len);
|
||||
(void)msnprintf(q, sizeof(q), "%lu", len);
|
||||
if(Curl_ssl_push_certinfo(data, certnum, "ECC Public Key", q))
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user