summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNigel Metheringham <nigel@exim.org>2008-12-12 14:44:25 +0000
committerNigel Metheringham <nigel@exim.org>2008-12-12 14:44:25 +0000
commitcf73943b330a44b8716aa1fcbf649ee1f0fbc67b (patch)
treed03b6716a908d9da4a91ef3311fe61a78500489a /src
parent24c929a27415c7cfc7126c47e4cad39acf3efa6b (diff)
Accept len modification fix. fixes: bug #770
Diffstat (limited to 'src')
-rw-r--r--src/src/daemon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/daemon.c b/src/src/daemon.c
index 2413eaea5..777cda6f4 100644
--- a/src/src/daemon.c
+++ b/src/src/daemon.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/daemon.c,v 1.25 2008/01/28 18:24:07 fanf2 Exp $ */
+/* $Cambridge: exim/src/src/daemon.c,v 1.26 2008/12/12 14:44:25 nm4 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -1613,7 +1613,7 @@ for (;;)
struct sockaddr_in accepted;
#endif
- EXIM_SOCKLEN_T len = sizeof(accepted);
+ EXIM_SOCKLEN_T len;
pid_t pid;
/* This code is placed first in the loop, so that it gets obeyed at the
@@ -1808,6 +1808,7 @@ for (;;)
{
if (FD_ISSET(listen_sockets[sk], &select_listen))
{
+ len = sizeof(accepted);
accept_socket = accept(listen_sockets[sk],
(struct sockaddr *)&accepted, &len);
FD_CLR(listen_sockets[sk], &select_listen);