dnsproxy: safely access server_list_sec for removing a list node 92/309392/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen/unified/20240411.142644 accepted/tizen/unified/x/20240412.023931
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 9 Apr 2024 08:03:48 +0000 (17:03 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 9 Apr 2024 10:06:15 +0000 (19:06 +0900)
commit3f10ee1199ce6255786fab4bc4c337c1ad476503
tree09fe0ac71ffb57d39929309fde735d8bdfacf9ce
parenta229082fa750b28e7fdabd662bf33fb609fbcfd4
dnsproxy: safely access server_list_sec for removing a list node

Safely access g_list, server_list_sec, by finding the next list
node before removing a list node from g_slist with g_list_remove().

Change-Id: Ia60a129605b53995726c98b945936d2b87dcb97a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/dnsproxy.c