]> git.ipfire.org Git - thirdparty/systemd.git/commit
{machine,system}ctl: always pass &changes and &n_changes (#3350)
authorChristian Hesse <mail@eworm.de>
Thu, 26 May 2016 13:57:37 +0000 (15:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 May 2016 13:57:37 +0000 (15:57 +0200)
commitacc0269cad31d1aaef2034a055b34c07c88a353d
tree8342adc928c2ad235c10fa473f50f0b7da27674b
parente81f2539673b536c1b20fe2fd0650079d71125a2
{machine,system}ctl: always pass &changes and &n_changes (#3350)

We have to pass addresses of changes and n_changes to
bus_deserialize_and_dump_unit_file_changes(). Otherwise we are hit by
missing information (subsequent calls to unit_file_changes_add() to
not add anything).

Also prevent null pointer dereference in
bus_deserialize_and_dump_unit_file_changes() by asserting.

Fixes #3339
src/machine/machinectl.c
src/shared/bus-unit-util.c
src/systemctl/systemctl.c