From e947731283c77b99745fc0392b006ce40c54904c Mon Sep 17 00:00:00 2001 From: yangwei_814916 Date: Wed, 14 May 2025 20:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangwei_814916 --- common/src/ipc/standard/ipc_model_codec.cpp | 1 + services/implementation/src/device_manager_service_impl.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/common/src/ipc/standard/ipc_model_codec.cpp b/common/src/ipc/standard/ipc_model_codec.cpp index 7829e95ab..790ef9067 100644 --- a/common/src/ipc/standard/ipc_model_codec.cpp +++ b/common/src/ipc/standard/ipc_model_codec.cpp @@ -380,6 +380,7 @@ bool IpcModelCodec::EncodeLocalServiceInfos(const std::vector IPC_VECTOR_MAX_SIZE) { LOGE("num is Invalid value, num = %{public}u", num); + return false; } for (uint32_t k = 0; k < num; k++) { DMLocalServiceInfo serviceInfo = serviceInfos[k]; diff --git a/services/implementation/src/device_manager_service_impl.cpp b/services/implementation/src/device_manager_service_impl.cpp index fe6fe34d0..7f64a2897 100644 --- a/services/implementation/src/device_manager_service_impl.cpp +++ b/services/implementation/src/device_manager_service_impl.cpp @@ -914,6 +914,7 @@ int32_t DeviceManagerServiceImpl::TransferSrcOldAuthMgr(std::shared_ptr auto authMgr = GetAuthMgrByTokenId(tokenId); if (authMgr == nullptr) { LOGE("DeviceManagerServiceImpl::TransferSrcOldAuthMgr authManager is nullptr"); + return ERR_DM_POINT_NULL; } authMgr->GetBindTargetParams(pkgName, peerTargetId, bindParam); int32_t authType = -1; -- Gitee