summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-22 23:58:42 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-22 23:59:11 +0100
commit4ab9f972c490f18ede0fb827c39df7b17d58aff0 (patch)
treee1be343aec7d8487e2bfa486b41bf50ccf88471e /libs
parent6c16f97c4c26076ebeafc4f54dab10a15deb38bc (diff)
luci-lib-ip: always return table for dump, even if empty
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'libs')
-rw-r--r--libs/luci-lib-ip/src/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/luci-lib-ip/src/ip.c b/libs/luci-lib-ip/src/ip.c
index b72b6c05c..affd5e1d6 100644
--- a/libs/luci-lib-ip/src/ip.c
+++ b/libs/luci-lib-ip/src/ip.c
@@ -962,7 +962,7 @@ static int _route_dump(lua_State *L, struct dump_filter *filter)
out:
nl_cb_put(cb);
- return (s.index > 0 && s.callback == 0);
+ return (s.callback == 0);
}
static int route_get(lua_State *L)
@@ -1191,7 +1191,7 @@ static int neighbor_dump(lua_State *L)
out:
nl_cb_put(cb);
- return (st.index > 0 && st.callback == 0);
+ return (st.callback == 0);
}