Skip to content

Commit

Permalink
pkcs11_openssl: Disable unused code
Browse files Browse the repository at this point in the history
Coverity: CID 1539183 (#1 of 1): Structurally dead code (UNREACHABLE)

Change-Id: I889de8bafb581b810a026c7359fbfee94f1b5a4e
Gerrit: http://gerrit.openvpn.net/c/openvpn/+/317
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Selva Nair <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg26901.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit 38fbddc)
  • Loading branch information
flichtenheld authored and cron2 committed Aug 11, 2023
1 parent 4b4f6ff commit dd0a3f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openvpn/pkcs11_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ pkcs11_init_tls_session(pkcs11h_certificate_t certificate,

#ifdef HAVE_XKEY_PROVIDER
return (xkey_load_from_pkcs11h(certificate, ssl_ctx) == 0); /* inverts the return value */
#endif

#else
int ret = 1;

X509 *x509 = NULL;
Expand Down Expand Up @@ -404,6 +403,7 @@ pkcs11_init_tls_session(pkcs11h_certificate_t certificate,
openssl_session = NULL;
}
return ret;
#endif /* ifdef HAVE_XKEY_PROVIDER */
}

char *
Expand Down

0 comments on commit dd0a3f3

Please sign in to comment.