mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
Bugfix: fix return value when null
Signed-off-by: z00838083 <zhuhuixuan@huawei.com>
This commit is contained in:
parent
2e69a6ae3d
commit
5eef012832
@ -143,6 +143,7 @@ int32_t DSchedSoftbusSession::GetFragDataHeader(uint8_t *ptrPacket, SessionDataH
|
||||
uint16_t index = 0;
|
||||
uint16_t byteLeft = BINARY_HEADER_FRAG_LEN - i;
|
||||
if (ptrPacket == nullptr) {
|
||||
ret = ERR_NULL_OBJECT;
|
||||
break;
|
||||
}
|
||||
ret = ReadTlvToHeader(ptrPacket + i, headerPara, index, byteLeft);
|
||||
|
Loading…
Reference in New Issue
Block a user