From: sanghyeok.oh Date: Mon, 12 Jun 2017 05:11:56 +0000 (+0900) Subject: dbuspolicy1_check_out: change sender to NULL X-Git-Tag: submit/tizen/20170612.054403^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F133401%2F1;p=platform%2Fcore%2Fsystem%2Flibdbuspolicy.git dbuspolicy1_check_out: change sender to NULL if sender is unique id, can_recv will return wrong value Change-Id: Idf8b3ce964cc4d5d064d8bf125071772b4987a2b Signed-off-by: sanghyeok.oh --- diff --git a/src/libdbuspolicy1.c b/src/libdbuspolicy1.c index d1477a5..61b2a37 100755 --- a/src/libdbuspolicy1.c +++ b/src/libdbuspolicy1.c @@ -371,8 +371,10 @@ DBUSPOLICY1_EXPORT int dbuspolicy1_check_out(void* configuration, if (r <= 0) goto end; - if (message_type != DBUSPOLICY_MESSAGE_TYPE_SIGNAL) + if (message_type != DBUSPOLICY_MESSAGE_TYPE_SIGNAL) { + sender = NULL; r = __internal_can_recv(bus_type, uid_n, gid_n, label, sender, path, interface, member, message_type); + } end: if (free_offset)