Skip to content

Commit 2e45656

Browse files
authored
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 <[email protected]> PR-URL: nodejs#56615 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 90840cc commit 2e45656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_context.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ void SecureContext::LoadPKCS12(const FunctionCallbackInfo<Value>& args) {
11641164
X509* ca = sk_X509_value(extra_certs.get(), i);
11651165

11661166
X509_STORE_add_cert(sc->GetCertStoreOwnedByThisSecureContext(), ca);
1167-
SSL_CTX_add_client_CA(sc->ctx_.get(), ca);
1167+
CHECK_EQ(1, SSL_CTX_add_client_CA(sc->ctx_.get(), ca));
11681168
}
11691169
ret = true;
11701170

0 commit comments

Comments
 (0)