login: fix NULL-deref on wall_message
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 5 Sep 2015 10:56:04 +0000 (12:56 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 5 Sep 2015 10:56:04 +0000 (12:56 +0200)
commit3d1c455f9a898e7427b642800644ae7142dc7557
treea70835445cb39c5e48ec9c69a74b5d403a25196a
parentc9912c5eafa03fdf53e569eaf2e89d7e0932975b
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