needed for implementations with persistant identities sync
authorVolker Birk <vb@pep-project.org>
Sat, 18 May 2019 21:26:41 +0200
branchsync
changeset 37220f31947b826d
parent 3721 11c6d627b261
child 3731 ecd9059f224d
child 3733 3772373556a4
child 3735 25b31318dcdc
child 3737 80bf2f5a285d
needed for implementations with persistant identities
sync/cond_act_sync.yml2
     1.1 --- a/sync/cond_act_sync.yml2	Sat May 18 21:01:32 2019 +0200
     1.2 +++ b/sync/cond_act_sync.yml2	Sat May 18 21:26:41 2019 +0200
     1.3 @@ -273,6 +273,15 @@
     1.4              }
     1.5          }
     1.6  
     1.7 +        free(partner->user_id);
     1.8 +        partner->user_id = strdup("#NV");
     1.9 +        assert(partner->user_id);
    1.10 +        if (!partner->user_id) {
    1.11 +            free_identity(me);
    1.12 +            free_identity(partner);
    1.13 +            return PEP_OUT_OF_MEMORY;
    1.14 +        }
    1.15 +
    1.16          status = session->notifyHandshake(me, partner, «$type»);
    1.17          if (status)
    1.18              return status;