0001-Fix-issue-NETLINK-Packet-too-small-or-truncated-92-1.patch 909 B

1234567891011121314151617181920212223242526272829
  1. From 0c80f9ead3eb1d938b3e8e68165c91e62db72de3 Mon Sep 17 00:00:00 2001
  2. From: Damjan Georgievski <gdamjan@gmail.com>
  3. Date: Wed, 15 Aug 2012 00:54:38 +0200
  4. Subject: [PATCH] Fix issue: NETLINK: Packet too small or truncated!
  5. 92!=16!=244
  6. As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514197#22
  7. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  8. ---
  9. src/nlrequest.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/src/nlrequest.c b/src/nlrequest.c
  12. index 99fd3d0..3a1f794 100644
  13. --- a/src/nlrequest.c
  14. +++ b/src/nlrequest.c
  15. @@ -44,7 +44,7 @@ int netlink_request(int s, struct nlmsghdr *n, int (*callback) (struct nlmsghdr
  16. for (;;) {
  17. int bytes;
  18. - char replybuf[2048];
  19. + char replybuf[4096];
  20. struct nlmsghdr *p = (struct nlmsghdr *) replybuf;
  21. if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) {
  22. --
  23. 2.11.0