diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-04-21 12:46:06 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-04-21 12:46:06 (GMT) |
commit | 83f14112e22d3d28dab4c88763136f2321718664 (patch) | |
tree | b6a88525377dc12e1d14eb85b5693eeeb99cd4e0 /lib | |
parent | c18730ddf69f70c79ebd77e6b0e173eadce96096 (diff) | |
download | libnl-83f14112e22d3d28dab4c88763136f2321718664.zip libnl-83f14112e22d3d28dab4c88763136f2321718664.tar.gz libnl-83f14112e22d3d28dab4c88763136f2321718664.tar.bz2 |
Fix clone() of AF specific link data
Passed the original link to ao_clone() instead of the new one.
Diffstat (limited to 'lib')
-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 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; |