]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
nl_object_clone: properly clone ce_mask field
authorAlexander Sack <asac@ubuntu.com>
Sat, 4 Jul 2009 23:56:31 +0000 (01:56 +0200)
committerThomas Graf <tgr@plip.localdomain>
Mon, 20 Jul 2009 09:58:57 +0000 (11:58 +0200)
based on my finding, ce_mask needs to be identical on clones; otherwise
some functions (like "dump") will treat clones differently.

lib/object.c

index fb44247b9b7a91e142176731599e8a5f14e1c868..46d8141442bf3dacc7345ec4d18e7f324376aa51 100644 (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);