tls: fix coverity warning 96/43296/5
authorFlorin Coras <[email protected]>
Thu, 26 Jun 2025 03:16:36 +0000 (20:16 -0700)
committerDave Barach <[email protected]>
Tue, 1 Jul 2025 00:57:08 +0000 (00:57 +0000)
Type: fix

Change-Id: I2505613734667ae59fc51bd42f8dcd15206cded1
Signed-off-by: Florin Coras <[email protected]>
src/plugins/tlsopenssl/tls_openssl.c

index 8d3f5f3..65fe9a3 100644 (file)
@@ -77,7 +77,7 @@ openssl_ctx_free (tls_ctx_t * ctx)
        {
          int rv = SSL_shutdown (oc->ssl);
          if (rv < 0)
-           SSL_get_error (oc->ssl, rv);
+           (void) SSL_get_error (oc->ssl, rv);
        }
 
       if (openssl_main.async)
@@ -428,7 +428,7 @@ openssl_confirm_app_close (tls_ctx_t *ctx)
   openssl_ctx_t *oc = (openssl_ctx_t *) ctx;
   int rv = SSL_shutdown (oc->ssl);
   if (rv < 0)
-    SSL_get_error (oc->ssl, rv);
+    (void) SSL_get_error (oc->ssl, rv);
   if (ctx->flags & TLS_CONN_F_SHUTDOWN_TRANSPORT)
     tls_shutdown_transport (ctx);
   else