mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 08:49:59 +00:00
Description:security handling
Feature or Bugfix:Bugfix Binary Source:NA Signed-off-by: sun-jiashun-123 <sunjiashun@huawei.com>
This commit is contained in:
parent
af1a4366a1
commit
9a7c3a9208
@ -852,6 +852,7 @@ int32_t LnnSetMediumParamBySpecificType(const LnnHeartbeatMediumParam *param)
|
||||
if (memcpy_s(paramMgr->param, sizeof(LnnHeartbeatMediumParam), param, sizeof(LnnHeartbeatMediumParam)) != EOK) {
|
||||
LNN_LOGE(LNN_HEART_BEAT, "HB set medium param memcpy_s err");
|
||||
SoftBusFree(paramMgr->param);
|
||||
paramMgr->param = NULL;
|
||||
(void)SoftBusMutexUnlock(&g_hbStrategyMutex);
|
||||
return SOFTBUS_MEM_ERR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user