diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-11-16 12:46:49 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-11-16 12:46:49 (GMT) |
commit | b6592cb5deb06f5ec2fd17aec57540529dec22ef (patch) | |
tree | b126f609719573d9ddc0ef999e323ff072af5bc4 /lib/route/link.c | |
parent | 53015f83811bd56d4b66331656633ad39051babf (diff) | |
download | libnl-b6592cb5deb06f5ec2fd17aec57540529dec22ef.zip libnl-b6592cb5deb06f5ec2fd17aec57540529dec22ef.tar.gz libnl-b6592cb5deb06f5ec2fd17aec57540529dec22ef.tar.bz2 |
link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
Diffstat (limited to 'lib/route/link.c')
-rw-r--r-- | lib/route/link.c | 2 |
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; |