Blame SOURCES/dnssec-trigger-0.11-coverity_scan.patch

2ac4eb
From b6e3deeef71a78c575d6e169d007956c02abc5da Mon Sep 17 00:00:00 2001
2ac4eb
From: wouter <wouter@14dc9c71-5cc2-e011-b339-0019d10b89f4>
2ac4eb
Date: Mon, 26 Aug 2013 08:41:03 +0000
2ac4eb
Subject: [PATCH] - Fix#522: Errors found by static analysis of source from
2ac4eb
 Tomas Hozza.
2ac4eb
2ac4eb
git-svn-id: http://www.nlnetlabs.nl/svn/dnssec-trigger/trunk@649 14dc9c71-5cc2-e011-b339-0019d10b89f4
2ac4eb
---
2ac4eb
 riggerd/riggerd.c | 1 +
2ac4eb
 riggerd/update.c  | 1 +
2ac4eb
 2 files changed, 2 insertions(+)
2ac4eb
2ac4eb
diff --git a/riggerd/riggerd.c b/riggerd/riggerd.c
2ac4eb
index dc61216..ef46691 100644
2ac4eb
--- a/riggerd/riggerd.c
2ac4eb
+++ b/riggerd/riggerd.c
2ac4eb
@@ -110,6 +110,7 @@ static RETSIGTYPE record_sigh(int sig)
2ac4eb
 #ifdef SIGHUP
2ac4eb
 	case SIGHUP:
2ac4eb
 		sig_reload = 1;
2ac4eb
+		/* fall through and exit commbase with reload boolean set */
2ac4eb
 #endif
2ac4eb
 	case SIGTERM:
2ac4eb
 #ifdef SIGQUIT
2ac4eb
diff --git a/riggerd/update.c b/riggerd/update.c
2ac4eb
index 437f981..dff5380 100644
2ac4eb
--- a/riggerd/update.c
2ac4eb
+++ b/riggerd/update.c
2ac4eb
@@ -573,6 +573,7 @@ selfupdate_write_file(struct selfupdate* se, struct http_get* hg)
2ac4eb
 		out)) {
2ac4eb
 		log_err("cannot write to file %s: %s", se->download_file,
2ac4eb
 			strerror(errno));
2ac4eb
+		fclose(out);
2ac4eb
 		goto fail;
2ac4eb
 	}
2ac4eb
 	fclose(out);
2ac4eb
-- 
2ac4eb
1.8.3.1
2ac4eb