From: DoHyun Pyun Date: Fri, 10 Apr 2020 04:56:47 +0000 (+0900) Subject: Add the validation check logic X-Git-Tag: accepted/tizen/unified/20200414.135756^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F230459%2F1;p=platform%2Fcore%2Fapi%2Fbluetooth.git Add the validation check logic Change-Id: Iccbaa0b5a7e5c67b5fc92549dc7a8841c3338926 Signed-off-by: DoHyun Pyun --- diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index 929be5c..f7a9195 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -4379,6 +4379,8 @@ int bt_gatt_client_set_characteristic_value_changed_cb(bt_gatt_h characteristic, BT_CHECK_INPUT_PARAMETER(characteristic); BT_CHECK_INPUT_PARAMETER(callback); + BT_VALIDATE_GATT_HANDLE(characteristic); + chr->value_changed_cb = callback; /* LCOV_EXCL_START */ chr->value_changed_user_data = user_data; @@ -4456,6 +4458,8 @@ int bt_gatt_client_unset_characteristic_value_changed_cb(bt_gatt_h characteristi BT_CHECK_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(characteristic); /* LCOV_EXCL_START */ + BT_VALIDATE_GATT_HANDLE(characteristic); + BT_INFO("+"); #ifdef TIZEN_GATT_CLIENT