diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-05 08:34:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-05 08:34:14 -0400 |
commit | 79a7fbb79b7f5a5a8bb3552f3c071498a34e5b84 (patch) | |
tree | d72097dd01b906afa67cad6c5ec0e0db3b4f4de9 /src/lib/tls/tortls_openssl.c | |
parent | 3b61bdb5aebe3890443e39eed4d79da93aa19c8b (diff) | |
download | tor-79a7fbb79b7f5a5a8bb3552f3c071498a34e5b84.tar.gz tor-79a7fbb79b7f5a5a8bb3552f3c071498a34e5b84.zip |
Fix a reverse-inull warning from coverity in new code.
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r-- | src/lib/tls/tortls_openssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c index cfe859adf3..5b1cdeec04 100644 --- a/src/lib/tls/tortls_openssl.c +++ b/src/lib/tls/tortls_openssl.c @@ -659,8 +659,7 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime, tls_log_errors(NULL, LOG_WARN, LD_NET, "creating TLS context"); if (pkey) EVP_PKEY_free(pkey); - if (result) - tor_tls_context_decref(result); + tor_tls_context_decref(result); return NULL; } |