Commit 03431d63 authored by Simon Kelley's avatar Simon Kelley

Initialise uid when creating CNAME cache record.

parent cc1a29e2
...@@ -1065,6 +1065,8 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t ...@@ -1065,6 +1065,8 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
if (newc) if (newc)
{ {
newc->addr.cname.target.cache = NULL; 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) if (cpp)
{ {
cpp->addr.cname.target.cache = newc; cpp->addr.cname.target.cache = newc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment