]> git.sur5r.net Git - openldap/commitdiff
Import T_SRV fix from HEAD
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 04:41:39 +0000 (04:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Mar 2004 04:41:39 +0000 (04:41 +0000)
CHANGES
libraries/libldap/dnssrv.c

diff --git a/CHANGES b/CHANGES
index a6a054a8df30680a4213f19a00eb64783c5b67dc..f32a50625980fae93674436e09af3c31b1e32388 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,8 @@ OpenLDAP 2.2.7 Engineering
        Fixed monitor backend crash when used with overlays (ITS#3023)
        Fixed oracle-related issues in back-sql (ITS#2641)
        Fixed '=' escape in DN (ITS#3009)
+       Build Environment
+               Fixed libldap T_SRV portability bug
        Documentation
                Fixed ldapmodrdn(1) manpage (ITS#3003)
 
index 4ef1e18b68b9b0e68b0e0a2ebd8b1d7f2b702dfc..99c69c21de36448c9ded3aca8ea8eeaa56d7a8e4 100644 (file)
@@ -174,6 +174,11 @@ int ldap_domain2dn(
        return LDAP_SUCCESS;
 }
 
+/* Bind 4 interface */
+#ifndef T_SRV
+#      define T_SRV 33
+#endif
+
 /*
  * Lookup and return LDAP servers for domain (using the DNS
  * SRV record _ldap._tcp.domain).
@@ -211,10 +216,6 @@ int ldap_domain2hostlist(
        /* Bind 8/9 interface */
     len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
 #else
-       /* Bind 4 interface */
-#      ifndef T_SRV
-#              define T_SRV 33
-#      endif
     len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
 #endif
     if (len >= 0) {