mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 05:26:20 +02:00
Mark one use of networkstatus_check_document_signature as (void)
Also explain why we aren't checking its return value. [CID 1198197]
This commit is contained in:
parent
059e33de59
commit
a66fff6381
@ -2273,8 +2273,11 @@ networkstatus_add_detached_signatures(networkstatus_t *target,
|
|||||||
if (!sig->good_signature && !sig->bad_signature) {
|
if (!sig->good_signature && !sig->bad_signature) {
|
||||||
cert = authority_cert_get_by_digests(sig->identity_digest,
|
cert = authority_cert_get_by_digests(sig->identity_digest,
|
||||||
sig->signing_key_digest);
|
sig->signing_key_digest);
|
||||||
if (cert)
|
if (cert) {
|
||||||
networkstatus_check_document_signature(target, sig, cert);
|
/* Not checking the return value here, since we are going to look
|
||||||
|
* at the status of sig->good_signature in a moment. */
|
||||||
|
(void) networkstatus_check_document_signature(target, sig, cert);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If this signature is good, or we don't have any signature yet,
|
/* If this signature is good, or we don't have any signature yet,
|
||||||
|
Loading…
Reference in New Issue
Block a user