summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-04-21 14:46:06 +0200
committerThomas Graf <tgraf@suug.ch>2011-04-21 14:46:06 +0200
commit83f14112e22d3d28dab4c88763136f2321718664 (patch)
treeb6a88525377dc12e1d14eb85b5693eeeb99cd4e0
parentc18730ddf69f70c79ebd77e6b0e173eadce96096 (diff)
downloadlibnl-83f14112e22d3d28dab4c88763136f2321718664.tar.gz
Fix clone() of AF specific link data
Passed the original link to ao_clone() instead of the new one.
-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 cb92f19..0295666 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -216,7 +216,7 @@ static int af_clone(struct rtnl_link *link, struct rtnl_link_af_ops *ops,
struct rtnl_link *dst = arg;
if (ops->ao_clone &&
- !(dst->l_af_data[ops->ao_family] = ops->ao_clone(link, data)))
+ !(dst->l_af_data[ops->ao_family] = ops->ao_clone(dst, data)))
return -NLE_NOMEM;
return 0;