소스 검색

Fix a reverse-inull warning from coverity in new code.

Nick Mathewson 5 년 전
부모
커밋
79a7fbb79b
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/lib/tls/tortls_openssl.c

+ 1 - 2
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;
 }