From 14d1f842bb340eea29dfaff5361173e11fdb9cc1 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 5 Dec 2008 20:11:29 -1000 Subject: In iface_ip2str(), make sure to advance to next item before continue. We have to manually advance the iter when working with D-Bus, so if continue in a loop, be sure to call the next() function on the iter. --- isys/iface.c | 1 + 1 file changed, 1 insertion(+) (limited to 'isys/iface.c') diff --git a/isys/iface.c b/isys/iface.c index 9bc55821e..d0613e20d 100644 --- a/isys/iface.c +++ b/isys/iface.c @@ -224,6 +224,7 @@ char *iface_ip2str(char *ifname, int family) { -1, &error); dbus_message_unref(message); if (!devreply) { + dbus_message_iter_next(&a_iter); continue; } -- cgit