json_info: do not loop forever on smart gateway egress interfaces
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 10 Jan 2013 13:04:05 +0000 (14:04 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 10 Jan 2013 13:11:21 +0000 (14:11 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 70d56e4..f143b2a 100644 (file)
@@ -1000,6 +1000,7 @@ ipc_print_config(struct autobuf *abuf)
           abuf_puts(&egressbuf, ",");
         }
         abuf_appendf(&egressbuf, "%s", egressif->name);
+        egressif = egressif->next;
       }
       abuf_json_string(abuf, "smartGatewayEgressInterfaces", egressbuf.buf);
       abuf_free(&egressbuf);