]> granicus.if.org Git - libnl/commitdiff
link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
authorThomas Graf <tgraf@suug.ch>
Tue, 16 Nov 2010 12:46:49 +0000 (13:46 +0100)
committerThomas Graf <tgraf@suug.ch>
Tue, 16 Nov 2010 12:46:49 +0000 (13:46 +0100)
lib/route/link.c

index 868a89a9e391055d59a1475502828c400a535201..55f6bbd705c76896573185cc01346e6fe6a34cc4 100644 (file)
@@ -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;