]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2002 [bug] libbind: tighten the constraints on when
authorMark Andrews <marka@isc.org>
Mon, 6 Mar 2006 02:27:35 +0000 (02:27 +0000)
committerMark Andrews <marka@isc.org>
Mon, 6 Mar 2006 02:27:35 +0000 (02:27 +0000)
                        struct addrinfo._ai_pad exists.  [RT #15783]

CHANGES
lib/bind/include/netdb.h
lib/bind/irs/getaddrinfo.c

diff --git a/CHANGES b/CHANGES
index a232d61557ca76f89002003fc3243119d8060b90..a9d405e18287dba4c8c87eb8a141b85e8b50f9ac 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
-2000.  [bug]           memmove()/strtol() fix was incomplete. [#RT 15812]
+2002   [bug]           libbind: tighten the constraints on when
+                       struct addrinfo._ai_pad exists.  [RT #15783]
+
+2000.  [bug]           memmove()/strtol() fix was incomplete. [RT #15812]
 
 1998.  [bug]           Restrict handling of fifos as sockets to just SunOS.
                        This allows named to connect to entropy gathering
index 48a382941c7bd1c4a2ddcbf242c94e7d1853e8c7..2bf2e348654f6b63572939cb99176823fe35b0af 100644 (file)
@@ -86,7 +86,7 @@
 
 /*
  *      @(#)netdb.h    8.1 (Berkeley) 6/2/93
- *     $Id: netdb.h,v 1.12.2.1.4.5 2004/11/30 01:15:42 marka Exp $
+ *     $Id: netdb.h,v 1.12.2.1.4.6 2006/03/06 02:27:35 marka Exp $
  */
 
 #ifndef _NETDB_H_
@@ -175,7 +175,7 @@ struct      addrinfo {
        int             ai_socktype;    /* SOCK_xxx */
        int             ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
 #if defined(sun) && defined(_SOCKLEN_T)
-#ifdef __sparc9
+#ifdef __sparcv9
        int             _ai_pad;
 #endif
        socklen_t       ai_addrlen;
index 4f741a8e7de238ebf0d28c1325aadb970bf37339..d80f298bf266ad0e3d898cee472a330853cedf57 100644 (file)
@@ -332,7 +332,7 @@ getaddrinfo(hostname, servname, hints, res)
        pai->ai_family = PF_UNSPEC;
        pai->ai_socktype = ANY;
        pai->ai_protocol = ANY;
-#ifdef __sparcv9
+#if defined(sun) && defined(_SOCKLEN_T) && defined(__sparcv9)
        /*
         * clear _ai_pad to preserve binary
         * compatibility with previously compiled 64-bit
@@ -340,7 +340,7 @@ getaddrinfo(hostname, servname, hints, res)
         * guaranteeing the upper 32-bits are empty.
         */
        pai->_ai_pad = 0;
-#endif /* __sparcv9 */
+#endif
        pai->ai_addrlen = 0;
        pai->ai_canonname = NULL;
        pai->ai_addr = NULL;
@@ -365,7 +365,7 @@ getaddrinfo(hostname, servname, hints, res)
                }
                memcpy(pai, hints, sizeof(*pai));
 
-#ifdef __sparcv9
+#if defined(sun) && defined(_SOCKLEN_T) && defined(__sparcv9)
                /*
                 * We need to clear _ai_pad to preserve binary
                 * compatibility.  See prior comment.