summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-16 13:46:49 +0100
committerThomas Graf <tgraf@suug.ch>2010-11-16 13:46:49 +0100
commitb6592cb5deb06f5ec2fd17aec57540529dec22ef (patch)
treeb126f609719573d9ddc0ef999e323ff072af5bc4
parent53015f83811bd56d4b66331656633ad39051babf (diff)
downloadlibnl-b6592cb5deb06f5ec2fd17aec57540529dec22ef.tar.gz
link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
-rw-r--r--lib/route/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c
index 868a89a..55f6bbd 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -193,7 +193,7 @@ static struct rtnl_link_af_ops *af_lookup_and_alloc(struct rtnl_link *link,
if (!af_ops)
return NULL;
- if (!(data = rtnl_link_af_data(link, af_ops)))
+ if (!(data = rtnl_link_af_alloc(link, af_ops)))
return NULL;
return af_ops;