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