fix:postbytes

Signed-off-by: wangjingen <wangjingen1@huawei.com>
This commit is contained in:
wangjingen 2023-03-23 18:13:03 +08:00
parent 28e715881e
commit a4b8d13d58

View File

@ -438,6 +438,10 @@ static int32_t BleConnectDevice(const ConnectOption *option, uint32_t requestId,
static int32_t BlePostBytes(uint32_t connectionId, char *data, int32_t len, int32_t pid, int32_t flag)
{
CLOGI("BlePostBytes connectionId=%u,pid=%d,len=%d flag=%d", connectionId, pid, len, flag);
if (len > MAX_DATA_LEN) {
CLOGI("big msg, len:%u\n", len);
return SOFTBUS_ERR;
}
if (data == NULL) {
return SOFTBUS_ERR;
}