1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-06-28 13:39:51 +03:00

swconfig: fix off-by-one error, causing segfaults on gcc 4.6+ (fixes #9765)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30485 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-02-12 19:27:01 +00:00
parent 444f3dd7f1
commit 4cf5dc60f9

View File

@ -38,7 +38,7 @@
static struct nl_sock *handle;
static struct nl_cache *cache;
static struct genl_family *family;
static struct nlattr *tb[SWITCH_ATTR_MAX];
static struct nlattr *tb[SWITCH_ATTR_MAX + 1];
static int refcount = 0;
static struct nla_policy port_policy[] = {