diff options
Diffstat (limited to '')
-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) |