From 2c1dc137f568f5ef79c5db3a71eb38e056060859 Mon Sep 17 00:00:00 2001 From: breakfei1 Date: Fri, 11 Nov 2022 15:22:08 +0800 Subject: [PATCH] fix the udp death callback bug when delete udp channel Signed-off-by: breakfei1 --- .../trans_channel/udp_negotiation/src/trans_udp_negotiation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/transmission/trans_channel/udp_negotiation/src/trans_udp_negotiation.c b/core/transmission/trans_channel/udp_negotiation/src/trans_udp_negotiation.c index 1a6db7e83..04201907a 100644 --- a/core/transmission/trans_channel/udp_negotiation/src/trans_udp_negotiation.c +++ b/core/transmission/trans_channel/udp_negotiation/src/trans_udp_negotiation.c @@ -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."); }