projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48386b
)
luci-lib-ip: fix routes() for non-callback invocations
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 22 Jan 2015 14:25:41 +0000
(15:25 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 22 Jan 2015 14:25:41 +0000
(15:25 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
libs/luci-lib-ip/src/ip.c
patch
|
blob
|
history
diff --git
a/libs/luci-lib-ip/src/ip.c
b/libs/luci-lib-ip/src/ip.c
index 66ecb567ef5bb42fa2a4697f95346b23b9fdf004..403ffbd05429711fd50630fb1a5fb6945de4fc04 100644
(file)
--- a/
libs/luci-lib-ip/src/ip.c
+++ b/
libs/luci-lib-ip/src/ip.c
@@
-869,7
+869,7
@@
static int cb_dump_route(struct nl_msg *msg, void *arg)
if (s->callback)
lua_call(s->L, 1, 0);
else if (hdr->nlmsg_flags & NLM_F_MULTI)
- lua_rawseti(s->L,
3
, s->index);
+ lua_rawseti(s->L,
-2
, s->index);
out:
s->pending = !!(hdr->nlmsg_flags & NLM_F_MULTI);