fix the udp death callback bug when delete udp channel

Signed-off-by: breakfei1 <zhangshen6@huawei.com>
This commit is contained in:
breakfei1 2022-11-11 15:22:08 +08:00
parent 916f7307ae
commit 2c1dc137f5

View File

@ -858,7 +858,7 @@ void TransUdpDeathCallback(const char *pkgName, int32_t pid)
(void)ReleaseUdpChannelLock();
UdpChannelInfo *udpChannelNodeNext = NULL;
LIST_FOR_EACH_ENTRY_SAFE(udpChannelNode, udpChannelNodeNext, &(udpChannelList->list), UdpChannelInfo, node) {
LIST_FOR_EACH_ENTRY_SAFE(udpChannelNode, udpChannelNodeNext, (&destroyList), UdpChannelInfo, node) {
if (OpenAuthConnForUdpNegotiation(udpChannelNode) != SOFTBUS_OK) {
SoftBusLog(SOFTBUS_LOG_TRAN, SOFTBUS_LOG_ERROR, "open udp negotiation failed.");
}