connection: dont modify msg in case of errors in kdbus_conn_get_conn_dst
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 10 Apr 2014 18:27:14 +0000 (20:27 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 10 Apr 2014 18:27:14 +0000 (20:27 +0200)
commitfb2904525bf73d2e6f113beabe530b3adbaf1804
treed385e99e51478ce34aee0cad18929bb92def4528
parent3ed256063794b120e83bc977782e7ac87908b313
connection: dont modify msg in case of errors in kdbus_conn_get_conn_dst

We shouldn't modify the message before we decided whether to fail or not.
Keep the name-id local and write it only after we checked for all errors.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c