ac3a84
From 7da1d4780b1dae16369fa5191832ec26d24a2ace Mon Sep 17 00:00:00 2001
ac3a84
From: Daan De Meyer <daan.j.demeyer@gmail.com>
ac3a84
Date: Fri, 11 Nov 2022 11:09:28 +0100
ac3a84
Subject: [PATCH] sd-bus: Use goto finish instead of return in
ac3a84
 bus_add_match_full
ac3a84
ac3a84
Fixes #25340
ac3a84
ac3a84
(cherry picked from commit 0f3c342903d1a09577378912717539b530af1fcf)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 src/libsystemd/sd-bus/sd-bus.c | 2 +-
ac3a84
 1 file changed, 1 insertion(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
ac3a84
index 3803a2c4c4..bc716afabf 100644
ac3a84
--- a/src/libsystemd/sd-bus/sd-bus.c
ac3a84
+++ b/src/libsystemd/sd-bus/sd-bus.c
ac3a84
@@ -3529,7 +3529,7 @@ static int bus_add_match_full(
ac3a84
                                                                  s);
ac3a84
 
ac3a84
                                 if (r < 0)
ac3a84
-                                        return r;
ac3a84
+                                        goto finish;
ac3a84
 
ac3a84
                                 /* Make the slot of the match call floating now. We need the reference, but we don't
ac3a84
                                  * want that this match pins the bus object, hence we first create it non-floating, but