luci-lib-ip: always return table for dump, even if empty
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
6c16f97c4c
commit
4ab9f972c4
1 changed files with 2 additions and 2 deletions
|
@ -962,7 +962,7 @@ static int _route_dump(lua_State *L, struct dump_filter *filter)
|
||||||
|
|
||||||
out:
|
out:
|
||||||
nl_cb_put(cb);
|
nl_cb_put(cb);
|
||||||
return (s.index > 0 && s.callback == 0);
|
return (s.callback == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int route_get(lua_State *L)
|
static int route_get(lua_State *L)
|
||||||
|
@ -1191,7 +1191,7 @@ static int neighbor_dump(lua_State *L)
|
||||||
|
|
||||||
out:
|
out:
|
||||||
nl_cb_put(cb);
|
nl_cb_put(cb);
|
||||||
return (st.index > 0 && st.callback == 0);
|
return (st.callback == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue