update sdk/frame/small/src/trans_client_stub.c.

Signed-off-by: wangwang <wangwang16@huawei.com>
This commit is contained in:
wangwang 2024-10-28 08:47:25 +00:00 committed by Gitee
parent 71842231e6
commit 6d0fff898f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -57,7 +57,7 @@ int32_t ClientOnChannelOpened(IpcIo *data, IpcIo *reply)
if (channel.isServer) {
int32_t udpPort = TransOnChannelOpened(sessionName, &channel);
WriteInt32(reply, udpPort);
return SOFTBUS_TRANS_CHANNEL_OPEN_FAILED;
return udpPort;
}
ReadInt32(data, &(channel.peerPort));
channel.peerIp = (char *)ReadString(data, &size);