diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-31 12:34:36 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-31 12:34:36 +0100 |
commit | c8a9a6550b84412f919b772a9cb8db1e3ef79d19 (patch) | |
tree | 270e253e13f67b366970cf2f07f5c06dd4257520 /dspam-exec.c | |
parent | aad2cd42ee3d71920648b649e759403b0cb0e138 (diff) | |
parent | 771fe630d71993b9d270a9a6145ecaa8510c4f1c (diff) | |
download | dovecot-antispam-c8a9a6550b84412f919b772a9cb8db1e3ef79d19.tar.gz dovecot-antispam-c8a9a6550b84412f919b772a9cb8db1e3ef79d19.tar.xz dovecot-antispam-c8a9a6550b84412f919b772a9cb8db1e3ef79d19.zip |
Merge remote branch 'base/master'
Diffstat (limited to 'dspam-exec.c')
-rw-r--r-- | dspam-exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dspam-exec.c b/dspam-exec.c index 3c52271..ecfb9f1 100644 --- a/dspam-exec.c +++ b/dspam-exec.c @@ -58,7 +58,8 @@ static int call_dspam(const char *signature, enum classification wanted) * non-zero exit code on errors so we treat it as an error * if it logged anything to stderr. */ - pipe(pipes); + if (pipe(pipes) < 0) + return -1; pid = fork(); if (pid < 0) |