projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40066a6
)
luci-lib-ip: fix netlink receiving in link()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 24 Jan 2015 13:25:53 +0000
(14:25 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 24 Jan 2015 13:25:53 +0000
(14: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 c799419e53e0571c0cb983838ba161c925c4bec3..5bff693f6216946c54405a7c929f43b4020969b1 100644
(file)
--- a/
libs/luci-lib-ip/src/ip.c
+++ b/
libs/luci-lib-ip/src/ip.c
@@
-1270,7
+1270,9
@@
static int link_get(lua_State *L)
lua_newtable(L);
nl_send_auto_complete(sock, msg);
- nl_recvmsgs(sock, cb);
+
+ while (st.pending > 0)
+ nl_recvmsgs(sock, cb);
nlmsg_free(msg);
nl_cb_put(cb);