Fix TCP query forwarding to non-default servers.

This commit is contained in:
Simon Kelley committed 2012-12-07 11:54:46 +00:00
1 parent b75e936372
commit ee86ce68fc
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
version 2.65
Fix regression which broke forwarding of queries sent via
TCP which are not for A and AAAA and which were directed to
non-default servers. Thanks to Niax for the bug report.
version 2.64
Handle DHCP FQDN options with all flag bits zero and
--dhcp-client-update set. Thanks to Bernd Krumbroeck for
+2 -1
View File
@@ -849,7 +849,8 @@ unsigned char *tcp_request(int confd, time_t now,
int norebind = 0;
int checking_disabled;
size_t m;
unsigned short qtype, gotname;
unsigned short qtype;
unsigned int gotname;
unsigned char c1, c2;
/* Max TCP packet + slop */
unsigned char *packet = whine_malloc(65536 + MAXDNAME + RRFIXEDSZ);