summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source4/dns_server/dns_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c
index dbdc300f90..003dd4ecde 100644
--- a/source4/dns_server/dns_server.c
+++ b/source4/dns_server/dns_server.c
@@ -828,6 +828,7 @@ static void dns_task_init(struct task_server *task)
z = talloc_zero(dns, struct dns_server_zone);
if (z == NULL) {
+ task_server_terminate(task, "dns failed to allocate memory", true);
}
z->name = ldb_msg_find_attr_as_string(res->msgs[i], "name", NULL);