]> git.pld-linux.org Git - packages/postfix.git/commitdiff
- adress family must be checked in inet_addr_host() too
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 4 Sep 2001 08:34:30 +0000 (08:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (or "localhost" in inet_interfaces won't work)

Changed files:
    postfix-ipv6.patch -> 1.2

postfix-ipv6.patch

index 0cddd8b52f74b5810c8f0820673e6baed02d1ca4..a2632f965a5931ff1f056c8be4076ef321bc4cca 100644 (file)
@@ -1676,7 +1676,7 @@ diff -ruN --exclude *.wiget --exclude *.rej snapshot-20010525.noipv6/src/util/in
  
  #ifndef INADDR_NONE
  #define INADDR_NONE 0xffffffff
-@@ -48,15 +51,45 @@
+@@ -48,15 +51,47 @@
  
  #include <inet_addr_list.h>
  #include <inet_addr_host.h>
@@ -1708,6 +1708,8 @@ diff -ruN --exclude *.wiget --exclude *.rej snapshot-20010525.noipv6/src/util/in
 +    error = getaddrinfo(hostname, NULL, &hints, &res0);
 +    if (error == 0) {
 +      for (res = res0; res; res = res->ai_next) {
++          if(res->ai_family != AF_INET && res->ai_family != AF_INET6)
++              continue;
 +          /* filter out address families that are not supported */
 +          s = socket(res->ai_family, SOCK_DGRAM, 0);
 +          if (s < 0)
This page took 0.835785 seconds and 4 git commands to generate.