sync/cond_act_sync.yml2
branchsync
changeset 3379 2f957d83c0f7
parent 3365 cbc208d0e104
child 3389 d5d388d3b227
     1.1 --- a/sync/cond_act_sync.yml2	Fri Mar 22 12:51:51 2019 +0100
     1.2 +++ b/sync/cond_act_sync.yml2	Fri Mar 22 16:05:04 2019 +0100
     1.3 @@ -136,12 +136,15 @@
     1.4              return PEP_OUT_OF_MEMORY;
     1.5          }
     1.6  
     1.7 -        free(partner->fpr);
     1.8 -        partner->fpr = strdup(session->sync_state.common.signature_fpr);
     1.9 -        if (!partner->fpr) {
    1.10 -            free_identity(me);
    1.11 -            free_identity(partner);
    1.12 -            return PEP_OUT_OF_MEMORY;
    1.13 +        assert(session->sync_state.common.signature_fpr);
    1.14 +        if (session->sync_state.common.signature_fpr) {
    1.15 +            free(partner->fpr);
    1.16 +            partner->fpr = strdup(session->sync_state.common.signature_fpr);
    1.17 +            if (!partner->fpr) {
    1.18 +                free_identity(me);
    1.19 +                free_identity(partner);
    1.20 +                return PEP_OUT_OF_MEMORY;
    1.21 +            }
    1.22          }
    1.23  
    1.24          status = session->notifyHandshake(me, partner, «$type»);