diff --git a/0004-use-correct-dn-value.patch b/0004-use-correct-dn-value.patch new file mode 100644 index 0000000..fa55c8b --- /dev/null +++ b/0004-use-correct-dn-value.patch @@ -0,0 +1,32 @@ +commit d69150691983f7f1efaa078549cd80a14afb76cb +Author: Petr Menšík +Date: Mon Jan 28 00:31:25 2019 +0100 + + Use correct dn value + + New GCC correctly reports error, NULL is always passed in case of + invalid objectclass. + + Signed-off-by: Petr Menšík + +diff --git a/src/ldap_helper.c b/src/ldap_helper.c +index ac8ce6e..8b486ae 100644 +--- a/src/ldap_helper.c ++++ b/src/ldap_helper.c +@@ -4102,7 +4102,6 @@ syncrepl_update(ldap_instance_t *inst, ldap_entry_t **entryp, int chgtype) + ldap_entry_t *entry = NULL; + dns_name_t *zone_name = NULL; + dns_zone_t *zone_ptr = NULL; +- char *dn = NULL; + isc_taskaction_t action = NULL; + isc_task_t *task = NULL; + isc_boolean_t synchronous; +@@ -4156,7 +4155,7 @@ syncrepl_update(ldap_instance_t *inst, ldap_entry_t **entryp, int chgtype) + else if ((entry->class & LDAP_ENTRYCLASS_RR) != 0) + action = update_record; + else { +- log_error("unsupported objectClass: dn '%s'", dn); ++ log_error("unsupported objectClass: dn '%s'", entry->dn); + result = ISC_R_NOTIMPLEMENTED; + goto cleanup; + } diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 3e77336..505dbb8 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -2,7 +2,7 @@ Name: bind-dyndb-ldap Version: 11.1 -Release: 13 +Release: 14 Summary: LDAP back-end plug-in for BIND License: GPLv2+ URL: https://releases.pagure.org/bind-dyndb-ldap @@ -12,6 +12,7 @@ Source1: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2.a Patch0001: 0001-Coverity-fix-REVERSE_INULL-for-pevent-inst.patch Patch0002: 0002-Add-empty-callback-for-getsize.patch Patch0003: 0003-Support-for-BIND-9.11.3.patch +Patch0004: 0004-use-correct-dn-value.patch BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version}, bind-pkcs11-devel >= %{bind_version} BuildRequires: krb5-devel BuildRequires: openldap-devel @@ -74,5 +75,11 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf %changelog +* Mon Jun 22 2020 gaihuiying - 11.1-14 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build error with gcc9 + * Wed Sep 11 2019 AlexChao - 11.1-13 - Package init