chiark / gitweb /
login: fix NULL-deref on wall_message
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 5 Sep 2015 10:56:04 +0000 (12:56 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:19:06 +0000 (10:19 +0100)
commitba5bb9837fda291f45cffa97fe8347e045a93694
tree14b39c3efe762212fd2c25ac36b6eca5f6c96adc
parente53c43f27a5a71c302eeecd7f6c66b47226b543e
login: fix NULL-deref on wall_message

We treat an empty wall-message equal to a NULL wall-message since:

        commit 5744f59a3ee883ef3a78214bd5236157acdc35ba
        Author: Lennart Poettering <lennart@poettering.net>
        Date:   Fri Sep 4 10:34:47 2015 +0200

            logind: treat an empty wall message like a NULL one

Fix the shutdown scheduler to not deref a NULL pointer, but properly
check for an empty wall-message.

Fixes: #1120
src/login/logind-dbus.c