summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNigel Metheringham <nigel@exim.org>2008-02-06 12:44:58 +0000
committerNigel Metheringham <nigel@exim.org>2008-02-06 12:44:58 +0000
commit3f0da4d03a40f701ea463d944022b337ca2b098e (patch)
tree35bd0cc53776774a7550a2a39d867201b0697aa3 /src
parentdf40aca4c4adf35e168c625f7fff589c90f1bb08 (diff)
Close the socket used by the dovecot authenticator. Fixes: #667
Diffstat (limited to 'src')
-rw-r--r--src/src/auths/dovecot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/src/auths/dovecot.c b/src/src/auths/dovecot.c
index a260109fb..adc466ab6 100644
--- a/src/src/auths/dovecot.c
+++ b/src/src/auths/dovecot.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.8 2008/01/18 12:23:26 nm4 Exp $ */
+/* $Cambridge: exim/src/src/auths/dovecot.c,v 1.9 2008/02/06 12:44:59 nm4 Exp $ */
/*
* Copyright (c) 2004 Andrey Panin <pazke@donpac.ru>
@@ -369,6 +369,9 @@ int auth_dovecot_server(auth_instance *ablock, uschar *data)
}
out:
+ /* close the socket used by dovecot */
+ if (fd >= 0)
+ close(fd);
/* Expand server_condition as an authorization check */
return (ret == OK)? auth_check_serv_cond(ablock) : ret;