mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Increase res_query buffers to 64k
This commit is contained in:
parent
d6449b1d57
commit
7dc1e069e8
@ -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; */
|
||||||
|
Loading…
Reference in New Issue
Block a user