Commit 38025e96 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

New T_SRV fix

parent aa797c0e
......@@ -174,11 +174,6 @@ 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).
......@@ -215,7 +210,15 @@ int ldap_domain2hostlist(
#ifdef NS_HFIXEDSZ
/* Bind 8/9 interface */
len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
# ifndef T_SRV
# define T_SRV ns_t_srv
# endif
#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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment