diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2012-12-07 11:54:46 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2012-12-07 11:54:46 +0000 |
commit | ee86ce68fc6ba371c3368c31aa548c635757270e (patch) | |
tree | 92cb32dd9dacada819c047be59b3f2906bbdebf6 | |
parent | b75e936372fb2d3a2959a6f2126bdd698fdb21c2 (diff) | |
download | dnsmasq-ee86ce68fc6ba371c3368c31aa548c635757270e.tar.gz |
Fix TCP query forwarding to non-default servers.v2.65test2
-rw-r--r-- | CHANGELOG | 5 | ||||
-rw-r--r-- | src/forward.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -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 diff --git a/src/forward.c b/src/forward.c index 5fc9595..e93aada 100644 --- a/src/forward.c +++ b/src/forward.c @@ -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); |