summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-03-20 16:25:43 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-03-20 16:25:43 +0000
commit03431d637301861ed13a4f5d7fc9be682bf28c71 (patch)
treee66e47caecca0235f737869a866309327a5ae9c1
parentcc1a29e2502b9984e6687a74f8bcbaea1fb5c5db (diff)
downloaddnsmasq-03431d637301861ed13a4f5d7fc9be682bf28c71.tar.gz
Initialise uid when creating CNAME cache record.
-rw-r--r--src/rfc1035.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rfc1035.c b/src/rfc1035.c
index ee11ff0..236d726 100644
--- a/src/rfc1035.c
+++ b/src/rfc1035.c
@@ -1065,6 +1065,8 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
if (newc)
{
newc->addr.cname.target.cache = NULL;
+ /* anything other than zero, to avoid being mistaken for CNAME to interface-name */
+ newc->addr.cname.uid = 1;
if (cpp)
{
cpp->addr.cname.target.cache = newc;