public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openslp] rawhide: Fix type confusion in KnownDABadDA call
@ 2026-09-30  7:29 Vitezslav Crhonek
  0 siblings, 0 replies; only message in thread
From: Vitezslav Crhonek @ 2026-09-30  7:29 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-30  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30  7:29 [rpms/openslp] rawhide: Fix type confusion in KnownDABadDA call Vitezslav Crhonek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox