projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libnl-tiny: fix receiving netlink messages larger than 4K
[openwrt/staging/chunkeey.git]
/
package
/
libs
/
libnl-tiny
/
src
/
nl.c
diff --git
a/package/libs/libnl-tiny/src/nl.c
b/package/libs/libnl-tiny/src/nl.c
index 99e9aebeba7cd77855f0175739f857c8e8eff89d..ea7d96898ba8f094dfa846e3f6a30798b316ff25 100644
(file)
--- a/
package/libs/libnl-tiny/src/nl.c
+++ b/
package/libs/libnl-tiny/src/nl.c
@@
-397,7
+397,7
@@
int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla,
flags |= MSG_PEEK;
if (page_size == 0)
- page_size = getpagesize();
+ page_size = getpagesize()
* 4
;
iov.iov_len = page_size;
iov.iov_base = *buf = malloc(iov.iov_len);