]> git.ipfire.org Git - thirdparty/systemd.git/commit
unit_is_bound_by_inactive: fix return pointer check
authorDominique Martinet <asmadeus@codewreck.org>
Wed, 24 Nov 2021 13:27:22 +0000 (22:27 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:42:37 +0000 (18:42 +0100)
commit3da361064bf550d1818c7cd800a514326058e5f2
tree90fa9a88e08d83f9eb0d0735c0cc850d56f45b11
parent989db9b399fb69bd6b991180a1f2d801124fdbd7
unit_is_bound_by_inactive: fix return pointer check

*ret_culprit should be set if ret_culprit has been passed a non-null value,
checking the previous *ret_culprit value does not make sense.

This would cause the culprit to not properly be assigned, leading to
pid1 crash when a unit could not be stopped.

Fixes: #21476
src/core/unit.c