mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 15:50:36 +01:00
rdisc: avoid static variable in receive_ra()
It's unnecessary and makes the function unnecessarily not thread safe.
Of course, also ndp_msg_opt_route_prefix() uses static variables, so
it's still not thread safe.
Fixes: c3a4656a68 ('rdisc: libndp implementation')
This commit is contained in:
parent
d1181533b8
commit
fbb65de32e
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ receive_ra (struct ndp *ndp, struct ndp_msg *msg, gpointer user_data)
|
|||
|
||||
/* DNS information */
|
||||
ndp_msg_opt_for_each_offset(offset, msg, NDP_MSG_OPT_RDNSS) {
|
||||
static struct in6_addr *addr;
|
||||
struct in6_addr *addr;
|
||||
int addr_index;
|
||||
|
||||
ndp_msg_opt_rdnss_for_each_addr (addr, addr_index, msg, offset) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue