From 0ef80067255d95d6a46b1a711bf0998ea1488de9 Mon Sep 17 00:00:00 2001 From: Niklas Jonsson Date: Wed, 20 Jun 2012 10:03:54 -0400 Subject: [PATCH] Auth: increase size of DNS resolver answer buffer This patchset increases the size of the res_search() answer buffer from 1024 octets to 4096 octets. This is not a proper long term solution but will permit sites with longer response lists to make use of SRV and AFSDB records. This patchset only impacts UNIX systems. Windows uses the Win32 DNS resolver which dynamically allocates memory based upon the size of the response. FIXES 130936 Reviewed-on: http://gerrit.openafs.org/7575 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit 3c16a2b296722f548309b10e6744639608c0861b) Change-Id: Iac7fc7143ff48bd3eb2d3719902dd4549af25b50 Reviewed-on: http://gerrit.openafs.org/7592 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/auth/cellconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index ad95a9b53..7b21740c7 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -989,7 +989,7 @@ afsconf_LookupServer(const char *service, const char *protocol, { int code = 0; int len; - unsigned char answer[1024]; + unsigned char answer[4096]; unsigned char *p; char *dotcellname; char *realCellName; -- 2.39.5