]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tls: avoid double close.
authorEric Leblond <eric@regit.org>
Thu, 6 Sep 2012 09:44:25 +0000 (11:44 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Sep 2012 11:40:46 +0000 (13:40 +0200)
This should fix issue 717441 reported by Coverity.

src/log-tlslog.c

index 0453726cc4e8a47ad29359a370ccce2aede3ca96..ed8aa327663eccd99183e74c59a4865e825a69ce 100644 (file)
@@ -354,6 +354,7 @@ end_fwrite_fpmeta:
         fclose(fpmeta);
         SCLogWarning(SC_ERR_FWRITE, "Unable to write certificate metafile");
     }
+    SCReturn;
 end_fp:
     fclose(fp);
 }