src/sync_impl.c
branchkeysync
changeset 1075 6ac3fd936e93
parent 1074 aebf26305436
child 1076 7a80153bfc5a
     1.1 --- a/src/sync_impl.c	Tue Aug 23 17:35:13 2016 +0200
     1.2 +++ b/src/sync_impl.c	Tue Aug 23 18:54:46 2016 +0200
     1.3 @@ -211,7 +211,9 @@
     1.4          return status;
     1.5  
     1.6      for (identity_list *_i = own_identities; _i && _i->ident; _i = _i->next) {
     1.7 -        pEp_identity *me = _i->ident;
     1.8 +        pEp_identity *me = identity_dup(_i->ident);
     1.9 +        if (!me)
    1.10 +            goto enomem;
    1.11  
    1.12          // FIXME: no deep copy for multicast supported yet
    1.13          DeviceGroup_Protocol_t *_msg = malloc(sizeof(DeviceGroup_Protocol_t));