Skip to content

Commit 5ef3c3c

Browse files
mhdawsonmarco-ippolito
authored andcommitted
crypto: add missing return value check
Add return value check for call to SSL_CTX_add_client_CA to be consistent with other places it is called Fixed unused warning in one of the static analysis tools we use at Red Hat even though it is not being reported by coverity in the configuration we run. Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: #56615 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e162476 commit 5ef3c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ void SecureContext::LoadPKCS12(const FunctionCallbackInfo<Value>& args) {
11171117
X509* ca = sk_X509_value(extra_certs.get(), i);
11181118

11191119
X509_STORE_add_cert(sc->GetCertStoreOwnedByThisSecureContext(), ca);
1120-
SSL_CTX_add_client_CA(sc->ctx_.get(), ca);
1120+
CHECK_EQ(1, SSL_CTX_add_client_CA(sc->ctx_.get(), ca));
11211121
}
11221122
ret = true;
11231123

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy