Browse Source

ssl: coverity 1465527 - dereference after null check

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14589)
master
Pauli 7 months ago
parent
commit
88ce406c89
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ssl/ssl_rsa.c

+ 3
- 0
ssl/ssl_rsa.c View File

@ -424,6 +424,9 @@ static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
void *passwd_callback_userdata;
SSL_CTX *real_ctx = (ssl == NULL) ? ctx : ssl->ctx;
if (ctx == NULL && ssl == NULL)
return 0;
ERR_clear_error(); /* clear error stack for
* SSL_CTX_use_certificate() */


Loading…
Cancel
Save