]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Increase initial DNS buffer size 409/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 22 Feb 2016 21:33:07 +0000 (16:33 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 22 Feb 2016 23:36:57 +0000 (18:36 -0500)
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)

src/lib/krb5/os/dnsglue.c

index 7d25fee070198134abf8d4abcdf2d1644bd5e2a7..1a259b399eba4ebcb041e576cfd919a61bf3e5fc 100644 (file)
@@ -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