dect
/
libnl
Archived
13
0
Fork 0

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.
This commit is contained in:
Alexander Sack 2009-07-05 01:56:31 +02:00 committed by Thomas Graf
parent dec2ea357d
commit 7d249fc2e1
1 changed files with 1 additions and 0 deletions

View File

@ -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);