From: Jo-Philipp Wich Date: Thu, 22 Jan 2015 22:58:42 +0000 (+0100) Subject: luci-lib-ip: always return table for dump, even if empty X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4ab9f972c490f18ede0fb827c39df7b17d58aff0;p=project%2Fluci.git luci-lib-ip: always return table for dump, even if empty Signed-off-by: Jo-Philipp Wich --- diff --git a/libs/luci-lib-ip/src/ip.c b/libs/luci-lib-ip/src/ip.c index b72b6c05ca..affd5e1d69 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); }