summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-11 11:09:28 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2022-11-11 15:57:41 +0100
commit0f3c342903d1a09577378912717539b530af1fcf (patch)
tree1d6306d56bc8e18ccbccb0fc6b5dba3188903003 /src/libsystemd/sd-bus
parent1af427632fa3a121e1dad1595f6dd64cce4bdbb3 (diff)
downloadsystemd-0f3c342903d1a09577378912717539b530af1fcf.tar.gz
sd-bus: Use goto finish instead of return in bus_add_match_full
Fixes #25340
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index 7e72245e8d..ba5ef7de00 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -3529,7 +3529,7 @@ static int bus_add_match_full(
s);
if (r < 0)
- return r;
+ goto finish;
/* Make the slot of the match call floating now. We need the reference, but we don't
* want that this match pins the bus object, hence we first create it non-floating, but