mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-29 21:40:30 +01:00
rdisc: fix invalid cast when printing addresses in config_changed()
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
c2a1cb1a44
commit
076ca1e3e2
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ config_changed (NMRDisc *rdisc, NMRDiscConfigMap changed)
|
|||
debug (" gateway %s pref %d exp %u", addrstr, gateway->preference, expiry (gateway));
|
||||
}
|
||||
for (i = 0; i < rdisc->addresses->len; i++) {
|
||||
NMRDiscGateway *address = &g_array_index (rdisc->addresses, NMRDiscGateway, i);
|
||||
NMRDiscAddress *address = &g_array_index (rdisc->addresses, NMRDiscAddress, i);
|
||||
|
||||
inet_ntop (AF_INET6, &address->address, addrstr, sizeof (addrstr));
|
||||
debug (" address %s exp %u", addrstr, expiry (address));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue