]> err.no Git - systemd/commitdiff
socket: don't crash if the .service unit for a .socket unit is not found
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Jan 2011 01:49:12 +0000 (02:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Jan 2011 01:49:12 +0000 (02:49 +0100)
TODO
src/socket.c

diff --git a/TODO b/TODO
index 07b42db01e0d666072f6d67b0e62334022fd94b4..2b40b6986a86e19bd87b988fbb85d667aa474d49 100644 (file)
--- a/TODO
+++ b/TODO
@@ -8,6 +8,8 @@ Bugs:
 
 * isolate multi-user.target doesn't start a getty@tty1 if we run it from graphical.target
 
+* when plymouth is disabled the console password entry stuff seems to be borked
+
 Features:
 
 * maybe introduce ExecRestartPre=
index 3bb8862ca9bb39e1a939929f912803585ec2f8ba..4443dba0c991b46a51cbd9140d26119127d0ac5c 100644 (file)
@@ -760,8 +760,9 @@ static int socket_open_fds(Socket *s) {
                                 if ((r = socket_instantiate_service(s)) < 0)
                                         return r;
 
-                                if ((r = label_get_socket_label_from_exe(s->service->exec_command[SERVICE_EXEC_START]->path, &label)) < 0)
-                                        return r;
+                                if (s->service && s->service->exec_command[SERVICE_EXEC_START])
+                                        if ((r = label_get_socket_label_from_exe(s->service->exec_command[SERVICE_EXEC_START]->path, &label)) < 0)
+                                                return r;
 
                                 know_label = true;
                         }