only return values when no error occurs sync
authorVolker Birk <vb@pep-project.org>
Fri, 03 May 2019 12:43:21 +0200
branchsync
changeset 361537782ea8068a
parent 3614 fef7884ea3ae
child 3617 3d6f394c9a6c
child 3621 fcd469228e71
only return values when no error occurs
src/message_api.c
     1.1 --- a/src/message_api.c	Fri May 03 12:41:43 2019 +0200
     1.2 +++ b/src/message_api.c	Fri May 03 12:43:21 2019 +0200
     1.3 @@ -2942,7 +2942,8 @@
     1.4              il->ident->me = true;
     1.5          }
     1.6          free(own_id);
     1.7 -        *private_il = _private_il;
     1.8 +        if (!status)
     1.9 +            *private_il = _private_il;
    1.10      }
    1.11      else {
    1.12          free_identity_list(_private_il);