diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 4f9bf48..8fcbbda 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -199,7 +199,7 @@ int main (int argc, char **argv) /* Must have at least a root trust anchor, or the DNSSEC code can loop forever. */ for (ds = daemon->ds; ds; ds = ds->next) - if (ds->name[0] == 0) + if (ds->name && ds->name[0] == 0) break; if (!ds)