s4-dns: fix a non handled memory out of memory
authorMatthieu Patou <mat@matws.net>
Tue, 2 Oct 2012 04:43:11 +0000 (21:43 -0700)
committerKai Blin <kai@samba.org>
Tue, 2 Oct 2012 07:43:52 +0000 (09:43 +0200)
Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Tue Oct  2 09:43:52 CEST 2012 on sn-devel-104

source4/dns_server/dns_server.c

index dbdc300f9019d200fad93c0b296731b4542055cc..003dd4ecde8c99a06fca3c861f39771b5d75cde1 100644 (file)
@@ -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);