ryantimwilson / rpms / systemd

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