dect
/
libnl
Archived
13
0
Fork 0

link/inet: Fix array access

This commit is contained in:
Thomas Graf 2010-11-16 13:47:41 +01:00
parent b6592cb5de
commit e2099719a5
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ int rtnl_link_inet_get_conf(struct rtnl_link *link, const unsigned int cfgid,
if (!(id = rtnl_link_af_alloc(link, &inet_ops)))
return -NLE_NOATTR;
*res = id->i_conf[cfgid];
*res = id->i_conf[cfgid - 1];
return 0;
}