From 076ca1e3e2bf0e775e41f87e300a479090523c5a Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 24 Feb 2014 11:40:22 +0100 Subject: [PATCH] rdisc: fix invalid cast when printing addresses in config_changed() Signed-off-by: Thomas Haller --- src/rdisc/nm-rdisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdisc/nm-rdisc.c b/src/rdisc/nm-rdisc.c index 68fbea3f7e..4aad3e50e7 100644 --- a/src/rdisc/nm-rdisc.c +++ b/src/rdisc/nm-rdisc.c @@ -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));