Initialise uid when creating CNAME cache record.

This commit is contained in:
Simon Kelley
2014-03-20 16:25:43 +00:00
parent cc1a29e250
commit 03431d6373

View File

@@ -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;