summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-10-01 21:43:11 -0700
committerKai Blin <kai@samba.org>2012-10-02 09:43:52 +0200
commitf4b9007faf901db6f703b5109df055081949c3f1 (patch)
tree837ddc4eeb23f67f1677575cd4f8e77ac253f572 /source4/dns_server
parent9f83968e1c201c1196fb4a9699b592bdfc718ea8 (diff)
downloadsamba-f4b9007faf901db6f703b5109df055081949c3f1.tar.gz
samba-f4b9007faf901db6f703b5109df055081949c3f1.tar.bz2
samba-f4b9007faf901db6f703b5109df055081949c3f1.zip
s4-dns: fix a non handled memory out of memory
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
Diffstat (limited to 'source4/dns_server')
-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);