]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a reverse-inull warning from coverity in new code.
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Sep 2018 12:34:14 +0000 (08:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Sep 2018 12:34:14 +0000 (08:34 -0400)
src/lib/tls/tortls_openssl.c

index cfe859adf38ef2848574da16b9689d98352c0520..5b1cdeec041bf7765aee3098fd7bf012127298a6 100644 (file)
@@ -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;
 }