libnl-tiny: fix receiving netlink messages larger than 4K
[project/libnl-tiny.git] / src / nl.c
index 99e9aebeba7cd77855f0175739f857c8e8eff89d..ea7d96898ba8f094dfa846e3f6a30798b316ff25 100644 (file)
--- a/src/nl.c
+++ b/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);