diff options
author | Alexander Sack <asac@ubuntu.com> | 2009-07-04 23:56:31 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@plip.localdomain> | 2009-07-20 09:58:57 (GMT) |
commit | 7d249fc2e1d0cb06cd4a4dfcc0a3c425ce63def7 (patch) | |
tree | 6787a780e4c4957b6567152afc6e61e822977ca0 /lib | |
parent | dec2ea357d7f54c986d06a06b8233dd1a7c85245 (diff) | |
download | libnl-7d249fc2e1d0cb06cd4a4dfcc0a3c425ce63def7.zip libnl-7d249fc2e1d0cb06cd4a4dfcc0a3c425ce63def7.tar.gz libnl-7d249fc2e1d0cb06cd4a4dfcc0a3c425ce63def7.tar.bz2 |
nl_object_clone: properly clone ce_mask field
based on my finding, ce_mask needs to be identical on clones; otherwise
some functions (like "dump") will treat clones differently.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/object.c b/lib/object.c index fb44247..46d8141 100644 --- a/lib/object.c +++ b/lib/object.c @@ -108,6 +108,7 @@ struct nl_object *nl_object_clone(struct nl_object *obj) new->ce_ops = obj->ce_ops; new->ce_msgtype = obj->ce_msgtype; + new->ce_mask = obj->ce_mask; if (size) memcpy((void *)new + doff, (void *)obj + doff, size); |