mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Fix a reverse-inull warning from coverity in new code.
This commit is contained in:
parent
3b61bdb5ae
commit
79a7fbb79b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user