mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-02 10:50:33 +01:00
2005-02-07 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_allows_send): Handle NULL for sender or proposed_recipient.
This commit is contained in:
parent
d76937e2e1
commit
b4fbcb98f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue