value can be NULL in case of response for write request
Change-Id: I553a86747f9661e1a96e8d304e635a0b7cc661b4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
int ret = BT_ERROR_NONE;
BT_CHECK_GATT_SERVER_SUPPORT();
BT_CHECK_INIT_STATUS();
- BT_CHECK_INPUT_PARAMETER(value);
if (request_type == BT_GATT_REQUEST_TYPE_READ && /* LCOV_EXCL_START */
resp_status == BT_ATT_ERROR_NONE) {
+ BT_CHECK_INPUT_PARAMETER(value);
+
if (value_length < 0)
return BT_ERROR_INVALID_PARAMETER;
}