diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-11-16 12:47:41 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-11-16 12:47:41 (GMT) |
commit | e2099719a544ec5772d1d21573bc90ec4d2b1290 (patch) | |
tree | 81d695d4b1005f320279d84db4fb137eb7520d5a | |
parent | b6592cb5deb06f5ec2fd17aec57540529dec22ef (diff) | |
download | libnl-e2099719a544ec5772d1d21573bc90ec4d2b1290.zip libnl-e2099719a544ec5772d1d21573bc90ec4d2b1290.tar.gz libnl-e2099719a544ec5772d1d21573bc90ec4d2b1290.tar.bz2 |
link/inet: Fix array access
-rw-r--r-- | lib/route/link/inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/inet.c b/lib/route/link/inet.c index 5736b32..6f8955a 100644 --- a/lib/route/link/inet.c +++ b/lib/route/link/inet.c @@ -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; } |