From e2099719a544ec5772d1d21573bc90ec4d2b1290 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Tue, 16 Nov 2010 13:47:41 +0100 Subject: link/inet: Fix array access --- lib/route/link/inet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12