mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 22:10:17 +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') (cherry picked from commitfbb65de32e) (cherry picked from commita1a3cce6ef)
This commit is contained in:
parent
dec168b525
commit
2f419e84c8
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,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