git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9558fd
)
s4:dlz_bind9: add no memory checks
author
Stefan Metzmacher
<metze@samba.org>
Mon, 17 Oct 2011 10:10:10 +0000
(12:10 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 17 Oct 2011 12:07:24 +0000
(14:07 +0200)
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 17 14:07:25 CEST 2011 on sn-devel-104
source4/dns_server/dlz_bind9.c
patch
|
blob
|
history
diff --git
a/source4/dns_server/dlz_bind9.c
b/source4/dns_server/dlz_bind9.c
index 58b47ce566261f8aa064ab6a834c73f417d8fae7..e37a66e2d3490aeea8feb942721b8d37fd7408f3 100644
(file)
--- a/
source4/dns_server/dlz_bind9.c
+++ b/
source4/dns_server/dlz_bind9.c
@@
-1021,6
+1021,10
@@
_PUBLIC_ isc_result_t dlz_configure(dns_view_t *view, void *dbdata)
continue;
}
zone_dn = ldb_dn_copy(tmp_ctx, dn);
+ if (zone_dn == NULL) {
+ talloc_free(tmp_ctx);
+ return ISC_R_NOMEMORY;
+ }
if (!b9_has_soa(state, zone_dn, zone)) {
continue;