krb5 commit: Increase initial DNS buffer size
Greg Hudson
ghudson at mit.edu
Tue Feb 23 12:13:27 EST 2016
https://github.com/krb5/krb5/commit/5872d8a6d0fccefd4c86a89c5b3dfd2227a5d284
commit 5872d8a6d0fccefd4c86a89c5b3dfd2227a5d284
Author: Greg Hudson <ghudson at mit.edu>
Date: Mon Feb 22 16:33:07 2016 -0500
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)
src/lib/krb5/os/dnsglue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/krb5/os/dnsglue.c b/src/lib/krb5/os/dnsglue.c
index 7d25fee..1a259b3 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
More information about the cvs-krb5
mailing list