Signed-off-by: rongguanlin <rongguanlin@huawei.com>
Change-Id: Idfe5436872fe36822f574c80aae860bb1f7fa2d7
This commit is contained in:
rongguanlin 2024-11-14 15:11:33 +08:00
parent 0f089c8f3f
commit 799ec802fb

View File

@ -923,11 +923,13 @@ static int32_t UdpOpenAuthConn(const char *peerUdid, uint32_t requestId, bool is
ret = AuthOpenConn(&auth, requestId, &cb, isMeta);
if (ret != SOFTBUS_OK) {
TRANS_LOGE(TRANS_CTRL, "open fail: ret=%{public}d", ret);
TransCloseUdpChannelByRequestId(requestId);
return ret;
}
ret = CheckAuthConnStatus(requestId);
if (ret != SOFTBUS_OK) {
TRANS_LOGE(TRANS_CTRL, "status check failed: ret=%{public}d", ret);
TransCloseUdpChannelByRequestId(requestId);
return ret;
}