diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2022-03-29 16:03:45 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2022-03-29 16:03:45 +0200 |
commit | dd366f2e664d660084fcbaaba30ae6c8dc8cdd4a (patch) | |
tree | 0528e5896cc3aea4f9d8db9d0e13c81daac1eaff | |
parent | 6b0a180b0e3ebcde3b067a813794a75f0ae7ec19 (diff) | |
download | dbus-dd366f2e664d660084fcbaaba30ae6c8dc8cdd4a.tar.gz dbus-dd366f2e664d660084fcbaaba30ae6c8dc8cdd4a.tar.bz2 dbus-dd366f2e664d660084fcbaaba30ae6c8dc8cdd4a.zip |
bus/policy: fix obvious mistake send->receive
Fortunately, the bit fields are at the exact same position,
in the union, so it worked so far...
Change-Id: Iaad9589dfc0f4f7e6a0f4ef4767a600f4cf2f54a
-rw-r--r-- | bus/policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/policy.c b/bus/policy.c index 081f5647..606d9a86 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -1530,7 +1530,7 @@ check_receive_rule (const BusPolicyRule *rule, * only when reply was requested. requested_reply=false means the * rule always applies */ - if (!match_params->u.sr.requested_reply && rule->access != BUS_POLICY_RULE_ACCESS_DENY && rule->d.send.requested_reply && !rule->d.send.eavesdrop) + if (!match_params->u.sr.requested_reply && rule->access != BUS_POLICY_RULE_ACCESS_DENY && rule->d.receive.requested_reply && !rule->d.receive.eavesdrop) { _dbus_verbose (" (policy) skipping %s rule since it only applies to requested replies and does not allow eavesdropping\n", rule->access == BUS_POLICY_RULE_ACCESS_DENY ? "allow" : "deny"); |