diff options
Diffstat (limited to 'bus/selinux.c')
-rw-r--r-- | bus/selinux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/selinux.c b/bus/selinux.c index 9527489f..5cb4438a 100644 --- a/bus/selinux.c +++ b/bus/selinux.c @@ -470,9 +470,9 @@ bus_selinux_allows_send (DBusConnection *sender, if (!selinux_enabled) return TRUE; - if (!dbus_connection_get_unix_process_id (sender, &spid)) + if (!sender || !dbus_connection_get_unix_process_id (sender, &spid)) spid = 0; - if (!dbus_connection_get_unix_process_id (proposed_recipient, &tpid)) + if (!proposed_recipient || !dbus_connection_get_unix_process_id (proposed_recipient, &tpid)) tpid = 0; auxdata = dbus_new0 (DBusString, 1); |