Fix wrong condition related to privilege control 12/149212/1
authorjusung son <jusung07.son@samsung.com>
Tue, 12 Sep 2017 01:56:37 +0000 (10:56 +0900)
committerjusung son <jusung07.son@samsung.com>
Tue, 12 Sep 2017 01:56:37 +0000 (10:56 +0900)
Change-Id: Id863a49e48c89f48578bdc76931793675dbe6a25
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/data_control_internal.c

index 5d315ae29c6c841ece992e464c060f7f1bc2a2cb..865edd2f16f7a35f8b99e77cde863db12a1818e5 100755 (executable)
@@ -1526,7 +1526,7 @@ int _add_watch_on_socket_info(const char *caller_id,
        ret = aul_request_data_control_socket_pair(sock_bundle, &socketpair);
        bundle_free(sock_bundle);
        if (ret != AUL_R_OK) {
-               if (ret != AUL_R_EILLACC) {
+               if (ret == AUL_R_EILLACC) {
                        _LOGE("Permission denied. Consumer need privilege.");
                        return DATA_CONTROL_ERROR_PERMISSION_DENIED;
                }