mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-02-25 05:33:05 +00:00
fix:postbytes
Signed-off-by: wangjingen <wangjingen1@huawei.com>
This commit is contained in:
parent
28e715881e
commit
a4b8d13d58
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user