45c707
From ef1c4b7833de663549e9520e06e2b9f457b5fbec Mon Sep 17 00:00:00 2001
45c707
From: rpm-build <rpm-build>
45c707
Date: Mon, 28 Jan 2019 00:21:31 +0100
45c707
Subject: [PATCH] Use correct dn value
45c707
45c707
New GCC correctly reports error, NULL is always passed in case of
45c707
invalid objectclass.
45c707
---
45c707
 src/ldap_helper.c | 3 +--
45c707
 1 file changed, 1 insertion(+), 2 deletions(-)
45c707
45c707
diff --git a/src/ldap_helper.c b/src/ldap_helper.c
45c707
index 74c0afe..0f6184d 100644
45c707
--- a/src/ldap_helper.c
45c707
+++ b/src/ldap_helper.c
45c707
@@ -4102,7 +4102,6 @@ syncrepl_update(ldap_instance_t *inst, ldap_entry_t **entryp, int chgtype)
45c707
 	ldap_entry_t *entry = NULL;
45c707
 	dns_name_t *zone_name = NULL;
45c707
 	dns_zone_t *zone_ptr = NULL;
45c707
-	char *dn = NULL;
45c707
 	isc_taskaction_t action = NULL;
45c707
 	isc_task_t *task = NULL;
45c707
 	isc_boolean_t synchronous;
45c707
@@ -4155,7 +4154,7 @@ syncrepl_update(ldap_instance_t *inst, ldap_entry_t **entryp, int chgtype)
45c707
 	else if ((entry->class & LDAP_ENTRYCLASS_RR) != 0)
45c707
 		action = update_record;
45c707
 	else {
45c707
-		log_error("unsupported objectClass: dn '%s'", dn);
45c707
+		log_error("unsupported objectClass: dn '%s'", entry->dn);
45c707
 		result = ISC_R_NOTIMPLEMENTED;
45c707
 		goto cleanup;
45c707
 	}
45c707
-- 
45c707
2.20.1
45c707