[icinga-checkins] icinga.org: icinga-core/mfriedrich/workers: core: fix error code in launch_command_file_worker()

git at icinga.org git at icinga.org
Tue Aug 7 15:26:35 CEST 2012


Module: icinga-core
Branch: mfriedrich/workers
Commit: 41d5deb96078b1f793f9e562e958811ac8dd1c5b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=41d5deb96078b1f793f9e562e958811ac8dd1c5b

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Aug  7 15:24:59 2012 +0200

core: fix error code in launch_command_file_worker()

refs #2957

---

 base/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/base/utils.c b/base/utils.c
index 86d7194..3279356 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -3302,7 +3302,7 @@ int launch_command_file_worker(void) {
 		command_wproc->ioc = iocache_create(512 * 1024);
 		if (!command_wproc->ioc) {
 			logit(NSLOG_RUNTIME_ERROR, TRUE, "Failed to create I/O cache for command file worker: %m\n");
-			goto err_close;
+			goto err_free;
 		}
 
 		printf("command_wproc->ioc: %p\n", command_wproc->ioc);





More information about the icinga-checkins mailing list