1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Matthieu Patou 2012-10-01 21:43:11 -07:00 committed by Kai Blin
parent 9f83968e1c
commit f4b9007faf

View 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);