Increase res_query buffers to 64k

This commit is contained in:
Kurt Zeilenga 2002-08-24 17:03:24 +00:00
parent d6449b1d57
commit 7dc1e069e8

View File

@ -172,10 +172,11 @@ int ldap_domain2hostlist(
char **list ) char **list )
{ {
#ifdef HAVE_RES_QUERY #ifdef HAVE_RES_QUERY
#define DNSBUFSIZ (64*1024)
char *request; char *request;
char *hostlist = NULL; char *hostlist = NULL;
int rc, len, cur = 0; int rc, len, cur = 0;
unsigned char reply[1024]; unsigned char reply[DNSBUFSIZ];
assert( domain != NULL ); assert( domain != NULL );
assert( list != NULL ); assert( list != NULL );
@ -198,7 +199,7 @@ int ldap_domain2hostlist(
len = res_query(request, C_IN, T_SRV, reply, sizeof(reply)); len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
if (len >= 0) { if (len >= 0) {
unsigned char *p; unsigned char *p;
char host[1024]; char host[DNSBUFSIZ];
int status; int status;
u_short port; u_short port;
/* int priority, weight; */ /* int priority, weight; */