Move init block. Oops.
authorKrista Bennett <krista@pep-project.org>
Fri, 05 Oct 2018 10:29:13 +0200
changeset 30023cb37672cb51
parent 2999 ae91fe244f9b
child 3003 962e41c8ca67
child 3004 079d0bf653be
Move init block. Oops.
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Fri Oct 05 08:51:46 2018 +0200
     1.2 +++ b/src/pEpEngine.c	Fri Oct 05 10:29:13 2018 +0200
     1.3 @@ -3105,16 +3105,16 @@
     1.4                           const char* new_uid) {
     1.5      PEP_STATUS status = PEP_STATUS_OK;
     1.6      
     1.7 -    status = reconcile_pEp_status(session, old_uid, new_uid);
     1.8 -    if (status != PEP_STATUS_OK)
     1.9 -        goto pEp_free;
    1.10 -        
    1.11      pEp_identity* new_ident = NULL;
    1.12      identity_list* old_identities = NULL;
    1.13      labeled_int_list_t* trust_list = NULL;
    1.14      stringlist_t* touched_keys = new_stringlist(NULL);
    1.15      char* main_user_fpr = NULL;
    1.16 -                
    1.17 +
    1.18 +    status = reconcile_pEp_status(session, old_uid, new_uid);
    1.19 +    if (status != PEP_STATUS_OK)
    1.20 +        goto pEp_free;
    1.21 +                        
    1.22      bool new_is_pep = false;
    1.23      new_ident = new_identity(NULL, NULL, new_uid, NULL);
    1.24      status = is_pep_user(session, new_ident, &new_is_pep);