8c35c8e6a00d8d4fc5e78987e7aa61f93a110e89
The name pointer provided by ubus get's cleared after the first call to ubus_register_subscriber in usteer_get_node. The leads to an incorrect ifindex returned by if_nametoindex due to the 0 characters long string. Work around this issue by reusing the interface name already stored in the local node struct. Fixes querying the wrong interface with netlink, resulting in incorrect SSIDs used for the nodes. Signed-off-by: David Bauer <mail@david-bauer.net>
Description
No description provided
Languages
C
96.9%
Shell
1.8%
CMake
0.8%
Makefile
0.5%