Fix TCP query forwarding to non-default servers.

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

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 version 2.64
Handle DHCP FQDN options with all flag bits zero and Handle DHCP FQDN options with all flag bits zero and
--dhcp-client-update set. Thanks to Bernd Krumbroeck for --dhcp-client-update set. Thanks to Bernd Krumbroeck for

View File

@@ -849,7 +849,8 @@ unsigned char *tcp_request(int confd, time_t now,
int norebind = 0; int norebind = 0;
int checking_disabled; int checking_disabled;
size_t m; size_t m;
unsigned short qtype, gotname; unsigned short qtype;
unsigned int gotname;
unsigned char c1, c2; unsigned char c1, c2;
/* Max TCP packet + slop */ /* Max TCP packet + slop */
unsigned char *packet = whine_malloc(65536 + MAXDNAME + RRFIXEDSZ); unsigned char *packet = whine_malloc(65536 + MAXDNAME + RRFIXEDSZ);