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

[PATCH] 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 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


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