11 lines
341 B
Diff
11 lines
341 B
Diff
|
--- lib/libnetlink.c 2007-10-16 21:26:51.000000000 +0000
|
||
|
+++ lib/libnetlink.c 2008-04-09 05:27:02.000000000 +0000
|
||
|
@@ -632,6 +632,6 @@
|
||
|
rta = RTA_DATA(rta) + RTA_ALIGN(len);
|
||
|
return parse_rtattr_nested(tb, max, rta);
|
||
|
}
|
||
|
- memset(tb, 0, sizeof(struct rtattr *) * max);
|
||
|
+ memset(tb, 0, sizeof(struct rtattr *) * (max + 1));
|
||
|
return 0;
|
||
|
}
|