From: Greg Hudson Date: Mon, 22 Feb 2016 21:33:07 +0000 (-0500) Subject: Increase initial DNS buffer size X-Git-Tag: krb5-1.15-beta1~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F409%2Fhead;p=thirdparty%2Fkrb5.git Increase initial DNS buffer size In dnsglue.c (which is used to look up SRV and TXT records), increase the initial buffer size guess from 2048 to 4096 to accomodate DNSSEC signatures. Suggested by Daniel Colascione. ticket: 8366 (new) --- diff --git a/src/lib/krb5/os/dnsglue.c b/src/lib/krb5/os/dnsglue.c index 7d25fee070..1a259b399e 100644 --- a/src/lib/krb5/os/dnsglue.c +++ b/src/lib/krb5/os/dnsglue.c @@ -128,7 +128,7 @@ krb5int_dns_init(struct krb5int_dns_state **dsp, ds->ansp = NULL; ds->anslen = 0; ds->ansmax = 0; - nextincr = 2048; + nextincr = 4096; maxincr = INT_MAX; #if HAVE_NS_INITPARSE