mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
Remove duplicate dl_list_init() for global_ctrl_dst
Commit 56885eecf4026b0199d5ba75bd50395a17d323cc ('hostapd: Add UDP support for ctrl_iface') added dl_list_init() for global_ctrl_dst to hostapd_global_ctrl_iface_init(). Though, hostapd_global_ctrl_iface_init() is only called from main.c:main(), which already initializes global_ctrl_dst unconditionally before. Same with global_ctrl_sock. Remove this duplicate initialization. Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
3765c9705c
commit
a1047f55b8
@ -3506,8 +3506,6 @@ int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
|
||||
}
|
||||
}
|
||||
|
||||
dl_list_init(&interface->global_ctrl_dst);
|
||||
interface->global_ctrl_sock = -1;
|
||||
os_get_random(gcookie, COOKIE_LEN);
|
||||
|
||||
#ifdef CONFIG_CTRL_IFACE_UDP_REMOTE
|
||||
|
Loading…
x
Reference in New Issue
Block a user