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