ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
b12df0
From eebbeada76b0fa4e252ecf4e25b088733636fe89 Mon Sep 17 00:00:00 2001
b12df0
From: Lennart Poettering <lennart@poettering.net>
b12df0
Date: Mon, 6 Aug 2018 18:19:45 +0200
b12df0
Subject: [PATCH] logind: correct bad clean-up path
b12df0
b12df0
(cherry picked from commit d88ffeeeefda4c3447223fd36f8e30f23c931e48)
b12df0
b12df0
Related: #1642460
b12df0
---
b12df0
 src/login/logind-dbus.c | 2 +-
b12df0
 1 file changed, 1 insertion(+), 1 deletion(-)
b12df0
b12df0
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
b12df0
index ae9abc9bce..4b2c418453 100644
b12df0
--- a/src/login/logind-dbus.c
b12df0
+++ b/src/login/logind-dbus.c
b12df0
@@ -845,7 +845,7 @@ static int method_create_session(sd_bus_message *message, void *userdata, sd_bus
b12df0
 
b12df0
         r = sd_bus_message_enter_container(message, 'a', "(sv)");
b12df0
         if (r < 0)
b12df0
-                return r;
b12df0
+                goto fail;
b12df0
 
b12df0
         r = session_start(session, message);
b12df0
         if (r < 0)