]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Fixed missing exit()s in case of failed execl() calls (Ansgar Burchardt)
authormortenp <none@none>
Sun, 10 Jun 2007 18:40:20 +0000 (04:40 +1000)
committermortenp <none@none>
Sun, 10 Jun 2007 18:40:20 +0000 (04:40 +1000)
ChangeLog
src/mlmmj-sub.c

index ac7ef047b7d80d02b9880469cd11b1fb48ff0ef6..1240243beedd61a69d756b0007ca16898f12f302 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b1bf63c94fa34e3ab585bff6c820913851bcf08f..8a2a68c1cdbe0381eb0d95a9188187822dce66e8 100644 (file)
@@ -170,6 +170,7 @@ void moderate_sub(const char *listdir, const char *listaddr,
                                "-R", replyto,
                                "-m", queuefilename, (char *)NULL);
                log_error(LOG_ARGS, "execl() of '%s' failed", mlmmjsend);
+               exit(EXIT_FAILURE);
        }
        
        myfree(to);
@@ -191,6 +192,7 @@ void moderate_sub(const char *listdir, const char *listaddr,
                                "-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,