Fix the security svace issue 70/150070/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 14 Sep 2017 01:23:23 +0000 (10:23 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 14 Sep 2017 07:50:34 +0000 (16:50 +0900)
Change-Id: Ia454f9296e6b56d1d42d13bf04780ed2793ba69f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
common/src/libraries/bt-util.c

index 420660d..fc22b99 100644 (file)
@@ -485,7 +485,7 @@ gboolean _bt_util_is_profile_connected(int connected_type, unsigned char *addr)
 {
        FN_START;
        char addr_str[BT_ADDRESS_STR_LEN + 1] = { 0 };
-       gboolean connected = FALSE;
+       bool connected = FALSE;
        int ret = 0;
        int connected_profiles = 0x00;
        bt_profile_e profile;
@@ -530,7 +530,7 @@ _default_:
        }
 
        ret = bt_device_is_profile_connected(addr_str, profile,
-                                       (bool *)&connected);
+                                       &connected);
 
        if (ret < BT_ERROR_NONE) {
                BT_ERR("failed with [0x%04x]", ret);