]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix coverity 1504433: unchecked return value
authorPauli <pauli@openssl.org>
Tue, 17 May 2022 00:58:10 +0000 (10:58 +1000)
committerPauli <pauli@openssl.org>
Thu, 19 May 2022 00:41:52 +0000 (10:41 +1000)
Just extending the comment so coveriety knows as well.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18326)

ssl/ssl_rsa.c

index fb615488adc84bedbef89aa573c79ace75a86ab2..125d4ff56fafcc53839fd07d0c678b5a32bfc277 100644 (file)
@@ -252,6 +252,7 @@ static int ssl_set_cert(CERT *c, X509 *x)
         /*
          * The return code from EVP_PKEY_copy_parameters is deliberately
          * ignored. Some EVP_PKEY types cannot do this.
+         * coverity[check_return]
          */
         EVP_PKEY_copy_parameters(pkey, c->pkeys[i].privatekey);
         ERR_clear_error();