diff options
author | Thomas Haller <thaller@redhat.com> | 2020-03-25 11:16:49 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-03-25 11:16:50 +0100 |
commit | fbb65de32ed129d0551d05e2b820a142fd301db0 (patch) | |
tree | 49d3a848081fd3f5aa33f7087be19096a7a5072d | |
parent | d1181533b8aaaa6918bcf3592fc4de62d20acaa5 (diff) |
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: c3a4656a68f9 ('rdisc: libndp implementation')
-rw-r--r-- | src/ndisc/nm-lndp-ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndisc/nm-lndp-ndisc.c b/src/ndisc/nm-lndp-ndisc.c index 3202c979e7..b10adc91f3 100644 --- a/src/ndisc/nm-lndp-ndisc.c +++ b/src/ndisc/nm-lndp-ndisc.c @@ -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) { |