Fix crash introduced by 09f3b2cd9c.

This commit is contained in:
Simon Kelley
2017-05-09 22:37:46 +01:00
parent 09f3b2cd9c
commit bf05f8ff20

View File

@@ -204,7 +204,7 @@ static unsigned int search_servers(time_t now, struct all_addr **addrpp, unsigne
} }
} }
if (flags == 0 && !(qtype & F_QUERY) && if (flags == 0 && !(qtype & (F_QUERY | F_DNSSECOK)) &&
option_bool(OPT_NODOTS_LOCAL) && !strchr(qdomain, '.') && namelen != 0) option_bool(OPT_NODOTS_LOCAL) && !strchr(qdomain, '.') && namelen != 0)
/* don't forward A or AAAA queries for simple names, except the empty name */ /* don't forward A or AAAA queries for simple names, except the empty name */
flags = F_NOERR; flags = F_NOERR;