procd: fix container deletion
authorDaniel Golle <daniel@makrotopia.org>
Wed, 15 Sep 2021 20:29:23 +0000 (21:29 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Sep 2021 20:43:23 +0000 (21:43 +0100)
commit68df9ac60426e1bb229c2c1a1127082f587dd432
treefd19dc9615fceb8bf3df4a35f1c66edccbd0f82a
parent8a60e7e066cb0b364cae13c524dce16743633b0a
procd: fix container deletion

Deleting a container could lead to an attempt NULL-pointer dereference
crashing procd and triggering a reboot of the system.
Properly handle service deletion to avoid that.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
service/service.c
service/service.h