summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pop3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pop3d.c b/pop3d.c
index dd71cb9..f16b0cd 100644
--- a/pop3d.c
+++ b/pop3d.c
@@ -175,6 +175,8 @@ authenticate(struct imsgev *iev, struct imsg *imsg)
if (maildrop_setup(imsg->hdr.peerid, pair, pw) == -1) {
logit(LOG_INFO, "%u: unable to fork maildrop process",
imsg->hdr.peerid);
+ close(pair[0]);
+ close(pair[1]);
pair[0] = -1;
goto end;
}