From e56a58547797533dab9760d3a5658eaab46bc5f9 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Sun, 26 Oct 2008 16:47:44 +0100 Subject: [PATCH] send_requested_reply only works for replies This should fix 18229 --- bus/policy.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/bus/policy.c b/bus/policy.c index caa544e..9a05f8b 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -928,6 +928,14 @@ bus_client_policy_check_can_send (BusClientPolicy *policy, continue; } } + else + { + if (rule->d.send.requested_reply) + { + _dbus_verbose (" (policy) skipping send_requested_reply rule for non-reply message\n"); + continue; + } + } if (rule->d.send.path != NULL) { @@ -1124,6 +1132,14 @@ bus_client_policy_check_can_receive (BusClientPolicy *policy, continue; } } + else + { + if (rule->d.receive.requested_reply) + { + _dbus_verbose (" (policy) skipping receive_requested_reply rule for non-reply message\n"); + continue; + } + } if (rule->d.receive.path != NULL) { -- 1.5.6.5