From: Niklas Jonsson Date: Wed, 20 Jun 2012 14:03:54 +0000 (-0400) Subject: Auth: increase size of DNS resolver answer buffer X-Git-Tag: upstream/1.8.0_pre1^2~2326 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3c16a2b296722f548309b10e6744639608c0861b;p=packages%2Fo%2Fopenafs.git 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 Change-Id: I8434e128fb5918839c216209851b37a17cf94065 Reviewed-on: http://gerrit.openafs.org/7575 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index 896dfd6bc..e3f6af6a0 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -963,7 +963,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 = NULL; char *realCellName;