diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-07-13 11:38:23 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-07-13 11:38:23 +1000 |
commit | 440089afe071817443c15d8914097a43e0485a89 (patch) | |
tree | fab8f8386c569c755d90e462654a52aabcc45659 | |
parent | 916fdda4016781ad19aca0996feda4ef07fbbd49 (diff) |
- (dtucker) [openbsd-compat/getrrsetbyname.c] Reduce answer buffer size so it
fits into 16 bits to work around a bug in glibc's resolver where it masks
off the buffer size at 16 bits. Patch from Hauke Lampe, ok djm jakob.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | openbsd-compat/getrrsetbyname.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20090713 | ||
2 | - (dtucker) [openbsd-compat/getrrsetbyname.c] Reduce answer buffer size so it | ||
3 | fits into 16 bits to work around a bug in glibc's resolver where it masks | ||
4 | off the buffer size at 16 bits. Patch from Hauke Lampe, ok djm jakob. | ||
5 | |||
1 | 20090712 | 6 | 20090712 |
2 | - (dtucker) [configure.ac] Include sys/param.h for the sys/mount.h test, | 7 | - (dtucker) [configure.ac] Include sys/param.h for the sys/mount.h test, |
3 | prevents configure complaining on older BSDs. | 8 | prevents configure complaining on older BSDs. |
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c index 785b22569..98876673d 100644 --- a/openbsd-compat/getrrsetbyname.c +++ b/openbsd-compat/getrrsetbyname.c | |||
@@ -143,7 +143,7 @@ u_int32_t _getlong(register const u_char *); | |||
143 | 143 | ||
144 | /* ************** */ | 144 | /* ************** */ |
145 | 145 | ||
146 | #define ANSWER_BUFFER_SIZE 1024*64 | 146 | #define ANSWER_BUFFER_SIZE 0xffff |
147 | 147 | ||
148 | struct dns_query { | 148 | struct dns_query { |
149 | char *name; | 149 | char *name; |