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
(from parent 1:
c88195f
)
s4:dlz_bind9: Copy dn before changing in b9_has_soa
author
Stefan Gohmann
<gohmann@univention.de>
Thu, 13 Oct 2011 13:23:58 +0000
(15:23 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 17 Oct 2011 10:36:50 +0000
(12:36 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
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 4105c1119e048233d18b1a2c862a49feda963d29..58b47ce566261f8aa064ab6a834c73f417d8fae7 100644
(file)
--- a/
source4/dns_server/dlz_bind9.c
+++ b/
source4/dns_server/dlz_bind9.c
@@
-1015,10
+1015,14
@@
_PUBLIC_ isc_result_t dlz_configure(dns_view_t *view, void *dbdata)
for (j=0; j<res->count; j++) {
isc_result_t result;
const char *zone = ldb_msg_find_attr_as_string(res->msgs[j], "name", NULL);
+ struct ldb_dn *zone_dn;
+
if (zone == NULL) {
continue;
}
- if (!b9_has_soa(state, dn, zone)) {
+ zone_dn = ldb_dn_copy(tmp_ctx, dn);
+
+ if (!b9_has_soa(state, zone_dn, zone)) {
continue;
}
result = state->writeable_zone(view, zone);