summaryrefslogtreecommitdiffstats
path: root/bus/selinux.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-02-07 05:31:59 +0000
committerColin Walters <walters@verbum.org>2005-02-07 05:31:59 +0000
commitb4fbcb98f17db36d40257969e5d5b35e231a088a (patch)
tree8334829aa620d6a786a4dd04e4bec8a27fc8c955 /bus/selinux.c
parentd76937e2e1bfc8e30377468db1e190f92d081ef9 (diff)
2005-02-07 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_allows_send): Handle NULL for sender or proposed_recipient.
Diffstat (limited to 'bus/selinux.c')
-rw-r--r--bus/selinux.c4
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);