From 511dbfe59449f7b869f9b1aded67e720ca364554 Mon Sep 17 00:00:00 2001 From: libing_frank Date: Tue, 12 Dec 2023 21:49:35 +0800 Subject: [PATCH] fix: modified deviceid to networkId Signed-off-by: libing_frank Change-Id: Id09f518e3ec634f842dd4c2e9d12ef221a453f70 --- baselib/msglib/src/standard/messenger_device_socket_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baselib/msglib/src/standard/messenger_device_socket_manager.c b/baselib/msglib/src/standard/messenger_device_socket_manager.c index 3171714..9a91c16 100644 --- a/baselib/msglib/src/standard/messenger_device_socket_manager.c +++ b/baselib/msglib/src/standard/messenger_device_socket_manager.c @@ -344,7 +344,7 @@ static void ProcessBindDevice(int socket, const DeviceIdentify *devId, bool isSe static void ServerOnBind(int32_t socket, PeerSocketInfo info) { DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; - if (!MessengerGetDeviceIdentifyByNetworkId(info.deviceId, &identity)) { + if (!MessengerGetDeviceIdentifyByNetworkId(info.networkId, &identity)) { SECURITY_LOG_ERROR("MessengerGetDeviceIdentifyByNetworkId failed"); return; } -- Gitee