diff --git a/initd/supervisor.c b/initd/supervisor.c index 37205ef..8ac69af 100644 --- a/initd/supervisor.c +++ b/initd/supervisor.c @@ -317,7 +317,7 @@ static service_t *remove_by_id(service_t **list, int id) if (prev == NULL) { *list = svc->next; } else { - prev = svc->next; + prev->next = svc->next; } }