Changeset 30485


Ignore:
Timestamp:
2012-02-12T20:27:01+01:00 (6 years ago)
Author:
nbd
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/swconfig/src/swlib.c

    r27800 r30485  
    3939static struct nl_cache *cache; 
    4040static struct genl_family *family; 
    41 static struct nlattr *tb[SWITCH_ATTR_MAX]; 
     41static struct nlattr *tb[SWITCH_ATTR_MAX + 1]; 
    4242static int refcount = 0; 
    4343 
Note: See TracChangeset for help on using the changeset viewer.