[PATCH] In iface_ip2str(), make sure to advance to next item before continue.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/isys/iface.c b/isys/iface.c
index 9bc5582..d0613e2 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;
         }
 
-- 
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux