public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vitezslav Crhonek <vcrhonek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openslp] rawhide: Fix type confusion in KnownDABadDA call
Date: Wed, 30 Sep 2026 07:29:20 GMT	[thread overview]
Message-ID: <179075336086.1.2864723719553621016.rpms-openslp-3a0b601b44eb@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/openslp
Branch : rawhide
Commit : 3a0b601b44ebab4e2aaca778cf00eee8a8cc6bc6
Author : Vitezslav Crhonek <vcrhonek@redhat.com>
Date   : 2026-09-30T09:29:06+02:00
Stats  : +21/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/openslp/c/3a0b601b44ebab4e2aaca778cf00eee8a8cc6bc6?branch=rawhide

Log:
Fix type confusion in KnownDABadDA call

---
diff --git a/openslp-2.0.0-cwe-843-knownda-type-confusion.patch b/openslp-2.0.0-cwe-843-knownda-type-confusion.patch
new file mode 100644
index 0000000..4fd0d33
--- /dev/null
+++ b/openslp-2.0.0-cwe-843-knownda-type-confusion.patch
@@ -0,0 +1,11 @@
+diff -up openslp-2.0.0/libslp/libslp_network.c.orig openslp-2.0.0/libslp/libslp_network.c
+--- openslp-2.0.0/libslp/libslp_network.c.orig	2026-09-29 09:24:31.198775361 +0200
++++ openslp-2.0.0/libslp/libslp_network.c	2026-09-29 09:24:31.201210907 +0200
+@@ -2178,7 +2178,7 @@ SLPError NetworkMultiUcastRqstRply(
+         if (pconn->state != CONN_COMPLETE)
+         {
+             /* this DA failed or timed out, so mark it as bad */
+-            KnownDABadDA(&destaddr[i].sin_addr);
++            KnownDABadDA(&destaddr[i]);
+         }
+     }

diff --git a/openslp.spec b/openslp.spec
index 44f2152..7849195 100644
--- a/openslp.spec
+++ b/openslp.spec
@@ -2,7 +2,7 @@
 Summary: Open implementation of Service Location Protocol V2
 Name:    openslp
 Version: 2.0.0
-Release: 44%{?dist}
+Release: 45%{?dist}
 
 License: BSD-3-Clause
 URL:     http://sourceforge.net/projects/openslp/
@@ -37,6 +37,10 @@ Patch7:  openslp-2.0.0-cve-2019-5544.patch
 #   subtracting the 236 byte BOOTP header, which otherwise underflows the
 #   size_t parameter of dhcpProcessOptions() and reads past rcvbuf
 Patch8:  openslp-2.0.0-dhcp-integer-overflow.patch
+# Patch9: fixes type confusion in NetworkMultiUcastRqstRply, which passed a
+#   4-byte struct in_addr to KnownDABadDA() where a struct sockaddr is
+#   expected, so failed DAs were never evicted from the known DA cache
+Patch9:  openslp-2.0.0-cwe-843-knownda-type-confusion.patch
 
 BuildRequires: make
 BuildRequires: automake libtool
@@ -79,6 +83,7 @@ OpenSLP server daemon to dynamically register services.
 %patch -P6 -p1 -b .cve-2017-17833
 %patch -P7 -p1 -b .cve-2019-5544
 %patch -P8 -p1 -b .dhcp-integer-overflow
+%patch -P9 -p1 -b .cwe-843-knownda-type-confusion
 
 # tarball goof (?), it wants to re-automake anyway, so let's do it right.
 #libtoolize --force
@@ -176,6 +181,10 @@ rm -f  $RPM_BUILD_ROOT%{_libdir}/lib*.la
 
 
 %changelog
+* Wed Sep 30 2026 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-45
+- Fix type confusion in KnownDABadDA call, so that failed directory agents
+  are correctly removed from the known DA cache
+
 * Tue Sep 29 2026 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-44
 - Fix integer overflow in DHCPGetOptionInfo() size calculation
 

                 reply	other threads:[~2026-09-30  7:29 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=179075336086.1.2864723719553621016.rpms-openslp-3a0b601b44eb@fedoraproject.org \
    --to=vcrhonek@redhat.com \
    --cc=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