diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-20 16:25:43 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-20 16:25:43 +0000 |
commit | 03431d637301861ed13a4f5d7fc9be682bf28c71 (patch) | |
tree | e66e47caecca0235f737869a866309327a5ae9c1 | |
parent | cc1a29e2502b9984e6687a74f8bcbaea1fb5c5db (diff) | |
download | dnsmasq-03431d637301861ed13a4f5d7fc9be682bf28c71.tar.gz |
Initialise uid when creating CNAME cache record.
-rw-r--r-- | src/rfc1035.c | 2 |
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; |