metadata: update meta->attached once the attach succeeded
authorDaniel Mack <daniel@zonque.org>
Thu, 16 Oct 2014 09:57:57 +0000 (11:57 +0200)
committerDaniel Mack <daniel@zonque.org>
Thu, 16 Oct 2014 09:57:57 +0000 (11:57 +0200)
commit9ceedc02a5b532ef0b2826b6382e7a834027a5cf
treefdde9564a62e8c047a6fdca92af38f8d32261ca9
parent97fe152b11853d970d0272a750e868f1f549edbe
metadata: update meta->attached once the attach succeeded

If we fail to append metadata items, but ignore the errors on purpose
for broadcast messages, we might end up with the same metadata multiple
times if we only update meta->attached wt the end of
kdbus_meta_append().

Hence, set each bit individually once the attachment succeeded.

Signed-off-by: Daniel Mack <daniel@zonque.org>
metadata.c