use partner's fpr sync
authorVolker Birk <vb@pep-project.org>
Thu, 21 Mar 2019 13:02:54 +0100
branchsync
changeset 3364e3fb1b26d179
parent 3363 9095efc623dd
child 3365 cbc208d0e104
use partner's fpr
sync/cond_act_sync.yml2
     1.1 --- a/sync/cond_act_sync.yml2	Thu Mar 21 12:54:20 2019 +0100
     1.2 +++ b/sync/cond_act_sync.yml2	Thu Mar 21 13:02:54 2019 +0100
     1.3 @@ -135,6 +135,13 @@
     1.4              free_identity(me);
     1.5              return PEP_OUT_OF_MEMORY;
     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 +        }
    1.14  
    1.15          status = session->notifyHandshake(me, partner, «$type»);
    1.16          if (status)