]> git.pld-linux.org Git - packages/exim.git/commitdiff
*** empty log message *** exim-3_32-2
authorareq <areq@pld-linux.org>
Fri, 10 Aug 2001 21:35:40 +0000 (21:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    exim-ipv6.patch -> 1.1

exim-ipv6.patch [new file with mode: 0644]

diff --git a/exim-ipv6.patch b/exim-ipv6.patch
new file mode 100644 (file)
index 0000000..c329dc2
--- /dev/null
@@ -0,0 +1,41 @@
+diff -urN exim-3.32.org/src/daemon.c exim-3.32/src/daemon.c
+--- exim-3.32.org/src/daemon.c Tue Aug  7 23:32:54 2001
++++ exim-3.32/src/daemon.c     Tue Aug  7 23:31:08 2001
+@@ -698,18 +698,18 @@
+   else
+     {
++    #if HAVE_IPV6
+     addresses = store_get(sizeof(ip_address_item));
+     addresses->next = NULL;
+-    addresses->address[0] = 0;
++    addresses->address[0] = ':';
++    addresses->address[1] = 0;
+     listen_socket_count = 1;
++    #endif /* HAVE_IPV6 */
+-    #if HAVE_IPV6
+     addresses->next = store_get(sizeof(ip_address_item));
+     addresses->next->next = NULL;
+-    addresses->next->address[0] = ':';
+-    addresses->next->address[1] = 0;
++    addresses->next->address[0] = 0;
+     listen_socket_count++;
+-    #endif  /* HAVE_IPV6 */
+     }
+   /* Get a vector to remember all the sockets in */
+@@ -856,7 +856,11 @@
+   connections that is allowed. */
+   for (sk = 0; sk < listen_socket_count; sk++)
+-    listen(listen_sockets[sk], smtp_connect_backlog);
++    if (listen(listen_sockets[sk], smtp_connect_backlog) < 0)
++      {
++      close(listen_sockets[sk]);
++      listen_socket_count--;
++      }
+   }
+ /* Set up the handler for SIGHUP, which causes a restart of the daemon. */
+
This page took 0.245573 seconds and 4 git commands to generate.