Skip to content
Snippets Groups Projects
Commit 7dc1e069 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Increase res_query buffers to 64k

parent d6449b1d
No related branches found
No related tags found
No related merge requests found
......@@ -172,10 +172,11 @@ int ldap_domain2hostlist(
char **list )
{
#ifdef HAVE_RES_QUERY
#define DNSBUFSIZ (64*1024)
char *request;
char *hostlist = NULL;
int rc, len, cur = 0;
unsigned char reply[1024];
unsigned char reply[DNSBUFSIZ];
assert( domain != NULL );
assert( list != NULL );
......@@ -198,7 +199,7 @@ int ldap_domain2hostlist(
len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
if (len >= 0) {
unsigned char *p;
char host[1024];
char host[DNSBUFSIZ];
int status;
u_short port;
/* int priority, weight; */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment