changeset 642:a5e0c3976086

Fixed missing exit()s in case of failed execl() calls (Ansgar Burchardt)
author mortenp
date Mon, 11 Jun 2007 04:40:20 +1000
parents 436eea81bc20
children cc61d5ac8292
files ChangeLog src/mlmmj-sub.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 11 04:05:02 2007 +1000
+++ b/ChangeLog	Mon Jun 11 04:40:20 2007 +1000
@@ -1,3 +1,4 @@
+ o Fixed missing exit()s in case of failed execl() calls (Ansgar Burchardt)
  o Changed Message-ID headers to include FQDN (Ansgar Burchardt)
  o Added support for 'discard' keyword in access rules (Sascha Sommer)
 1.2.14
--- a/src/mlmmj-sub.c	Mon Jun 11 04:05:02 2007 +1000
+++ b/src/mlmmj-sub.c	Mon Jun 11 04:40:20 2007 +1000
@@ -170,6 +170,7 @@
 				"-R", replyto,
 				"-m", queuefilename, (char *)NULL);
 		log_error(LOG_ARGS, "execl() of '%s' failed", mlmmjsend);
+		exit(EXIT_FAILURE);
 	}
 	
 	myfree(to);
@@ -191,6 +192,7 @@
 				"-F", from,
 				"-m", queuefilename, (char *)NULL);
 	log_error(LOG_ARGS, "execl() of '%s' failed", mlmmjsend);
+	exit(EXIT_FAILURE);
 }
 
 void getaddrandtype(const char *listdir, const char *modstr,