]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Coverity: 1038139 suppress sanity check
authorEric Leblond <eric@regit.org>
Wed, 26 Jun 2013 07:42:33 +0000 (09:42 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 26 Jun 2013 08:18:29 +0000 (10:18 +0200)
The sanity check was really useless as the NULL value is checked in
the code flow.

src/log-tlslog.c

index 6ae923ab0d801efb8256dfddfb355594248f235a..cbd3b2538b5b5286b93cb62a28136b40947b2a46 100644 (file)
@@ -588,8 +588,7 @@ OutputCtx *LogTlsLogInitCtx(ConfNode *conf)
     return output_ctx;
 
 tlslog_error:
-    if (tlslog_ctx != NULL)
-        SCFree(tlslog_ctx);
+    SCFree(tlslog_ctx);
 filectx_error:
     LogFileFreeCtx(file_ctx);
     return NULL;