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

2
TODO
View File

@ -43,6 +43,8 @@ CGroup Rework Completion:
Features:
* sd-bus: synthesized messages should get serial number (uint32_t) -1
* sd-event: allow multiple signal handlers per signal
* timer: expose accuracy as unit setting

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);