diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index ccb8fe9a3e..fdf577402e 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -203,7 +203,7 @@ int ldap_domain2hostlist( #endif rc = LDAP_UNAVAILABLE; - len = res_query(request, C_IN, T_SRV, reply, sizeof(reply)); + len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply)); if (len >= 0) { unsigned char *p; char host[DNSBUFSIZ];