public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind-dyndb-ldap] f45: Fix fwdpolicy warning emited on rawhide
@ 2026-10-13 12:10
0 siblings, 0 replies; only message in thread
From: @ 2026-10-13 12:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bind-dyndb-ldap
Branch : f45
Commit : 0278e9ddf8c3ba6204ca4b2516894b26c09d9a26
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-10-09T17:08:45+02:00
Stats : +47/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bind-dyndb-ldap/c/0278e9ddf8c3ba6204ca4b2516894b26c09d9a26?branch=f45
Log:
Fix fwdpolicy warning emited on rawhide
---
diff --git a/bind-dyndb-ldap-11.11-fwdpolicy-init.patch b/bind-dyndb-ldap-11.11-fwdpolicy-init.patch
new file mode 100644
index 0000000..64db629
--- /dev/null
+++ b/bind-dyndb-ldap-11.11-fwdpolicy-init.patch
@@ -0,0 +1,45 @@
+From 78d1605183e437110816a0ed924e71237e5bee48 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Fri, 9 Oct 2026 16:59:06 +0200
+Subject: [PATCH] Explicitly initialize fwdpolicy
+
+It should not be possible to use it uninitialized, but to silence
+compiler make it more explicit.
+---
+ src/fwd.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/fwd.c b/src/fwd.c
+index f7f26f1..b826843 100644
+--- a/src/fwd.c
++++ b/src/fwd.c
+@@ -325,7 +325,7 @@ fwd_setting_isexplicit(isc_mem_t *mctx, const settings_set_t *set,
+ bool *isexplicit) {
+ isc_result_t result;
+ setting_t *setting = NULL;
+- dns_fwdpolicy_t fwdpolicy;
++ dns_fwdpolicy_t fwdpolicy = dns_fwdpolicy_none;
+ dns_forwarderlist_t fwdrs;
+
+ REQUIRE(isexplicit != NULL);
+@@ -413,7 +413,7 @@ fwd_parse_ldap(ldap_entry_t *entry, settings_set_t *set) {
+ * We invented option "none" which disables forwarding for zone
+ * regardless idnsForwarders attribute and global forwarders.
+ */
+- dns_fwdpolicy_t fwdpolicy;
++ dns_fwdpolicy_t fwdpolicy = dns_fwdpolicy_none;
+
+ REQUIRE(entry != NULL);
+ REQUIRE(set != NULL);
+@@ -518,7 +518,7 @@ fwd_configure_zone(const settings_set_t *set, ldap_instance_t *inst,
+ * We invented option "none" which disables forwarding for zone
+ * regardless idnsForwarders attribute and global forwarders.
+ */
+- dns_fwdpolicy_t fwdpolicy;
++ dns_fwdpolicy_t fwdpolicy = dns_fwdpolicy_none;
+ const char *fwdpolicy_str = NULL;
+ const char *forwarders_str = NULL;
+ bool isconfigured;
+--
+2.56.0
+
diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec
index 3277b5f..03b3dec 100644
--- a/bind-dyndb-ldap.spec
+++ b/bind-dyndb-ldap.spec
@@ -31,6 +31,8 @@ Source1: https://codeberg.org/freeipa/%{name}/releases/download/v%{VERSIO
Patch1: bind-dyndb-ldap-11.10-check-pr244.patch
# https://codeberg.org/freeipa/bind-dyndb-ldap/pulls/247
Patch2: bind-dyndb-ldap-12-multibind-libs.patch
+# https://codeberg.org/freeipa/bind-dyndb-ldap/pulls/256
+Patch3: bind-dyndb-ldap-11.11-fwdpolicy-init.patch
BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version}
BuildRequires: krb5-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-13 12:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 12:10 [rpms/bind-dyndb-ldap] f45: Fix fwdpolicy warning emited on rawhide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox