socket: fix segfault

This commit is contained in:
Lennart Poettering
2013-11-21 00:06:11 +01:00
parent 54b434b1b5
commit 2e41a51ea4
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -298,6 +298,7 @@ int config_parse_socket_listen(const char *unit,
}
p->fd = -1;
p->socket = s;
if (s->ports) {
LIST_FIND_TAIL(port, s->ports, tail);