public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind-dyndb-ldap] f45: Fix fwdpolicy warning emited on rawhide
Date: Tue, 13 Oct 2026 12:10:33 GMT	[thread overview]
Message-ID: <179189343324.1.10493041710649735330.rpms-bind-dyndb-ldap-0278e9ddf8c3@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-13 12:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179189343324.1.10493041710649735330.rpms-bind-dyndb-ldap-0278e9ddf8c3@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox