mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#2996 make sure T_SRV is defined for both places it is referenced
This commit is contained in:
parent
df312502ac
commit
127cdb6432
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user