]> git.sur5r.net Git - openldap/commitdiff
ITS#2996 make sure T_SRV is defined for both places it is referenced
authorHoward Chu <hyc@openldap.org>
Fri, 5 Mar 2004 10:35:21 +0000 (10:35 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 5 Mar 2004 10:35:21 +0000 (10:35 +0000)
libraries/libldap/dnssrv.c

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) {