summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-04-16 22:20:55 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2014-04-16 22:20:55 +0100
commit63758384456baa698385888fe2d04cb899787259 (patch)
tree41c69cae1e827e4bca4aa27d65714f8231c3fc8f
parent82a14af5e742f685149ede3f3c3aa32e7ef97d6d (diff)
downloaddnsmasq-63758384456baa698385888fe2d04cb899787259.tar.gz
Fix crash on TCP DNS request when DNSSEC not enabled.
-rw-r--r--CHANGELOG6
-rw-r--r--src/forward.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3df1406..7dcec79 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,9 @@
+version 2.70
+ Fix crash, introduced in 2.69, on TCP request when dnsmasq
+ compiled with DNSSEC support, but running without DNSSEC
+ enabled. Thanks to Manish Sing for spotting that one.
+
+
version 2.69
Implement dynamic interface discovery on *BSD. This allows
the contructor: syntax to be used in dhcp-range for DHCPv6
diff --git a/src/forward.c b/src/forward.c
index 37265da..0079075 100644
--- a/src/forward.c
+++ b/src/forward.c
@@ -1745,7 +1745,7 @@ unsigned char *tcp_request(int confd, time_t now,
struct server *firstsendto = NULL;
#ifdef HAVE_DNSSEC
unsigned char *newhash, hash[HASH_SIZE];
- if ((newhash = hash_questions(header, (unsigned int)size, daemon->keyname)))
+ if ((newhash = hash_questions(header, (unsigned int)size, daemon->namebuff)))
memcpy(hash, newhash, HASH_SIZE);
else
memset(hash, 0, HASH_SIZE);