Hello,

    Fix crash caused by zone deletion.


I found that that I pushed patch
bind-dyndb-ldap-pspacek-0126-Add-support-for-pure-forward-zones-idnsForwardZone-o.patch
instead of
bind-dyndb-ldap-pspacek-0126-2-Add-support-for-pure-forward-zones-idnsForwardZone-o.patch

Attached patch is only diff between mentioned versions.

Pushed to master:
f477d82bcd0ba53ac6f813910ad24919f4edb34a

--
Petr^2 Spacek
From f477d82bcd0ba53ac6f813910ad24919f4edb34a Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspa...@redhat.com>
Date: Mon, 8 Apr 2013 19:24:53 +0200
Subject: [PATCH] Fix crash caused by zone deletion.

Signed-off-by: Petr Spacek <pspa...@redhat.com>
---
 src/ldap_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ldap_helper.c b/src/ldap_helper.c
index c840e1b9953bdf4632f590510946e4a57f78c1e7..b59fd8e90cd225f7e45ce49a379d77dbc277a6c9 100644
--- a/src/ldap_helper.c
+++ b/src/ldap_helper.c
@@ -3385,7 +3385,7 @@ update_zone(isc_task_t *task, isc_event_t *event)
 
 	CHECK(dn_to_dnsname(inst->mctx, pevent->dn, &currname, NULL));
 
-	if (result == ISC_R_SUCCESS &&
+	if (ldap_qresult_zone != NULL &&
 	    HEAD(ldap_qresult_zone->ldap_entries) != NULL) {
 		entry_zone = HEAD(ldap_qresult_zone->ldap_entries);
 		CHECK(ldap_entry_getclass(entry_zone, &objclass));
-- 
1.7.11.7

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to