Cleanup in aux_mime_msg; also IOS-1960 sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 18 Nov 2019 23:47:41 +0100
branchsync
changeset 4206785f67d4cab3
parent 4203 771130f714c4
child 4207 c47af107d4f5
Cleanup in aux_mime_msg; also IOS-1960
src/aux_mime_msg.c
sync/gen_statemachine.ysl2
     1.1 --- a/src/aux_mime_msg.c	Mon Nov 18 14:45:17 2019 +0100
     1.2 +++ b/src/aux_mime_msg.c	Mon Nov 18 23:47:41 2019 +0100
     1.3 @@ -222,6 +222,9 @@
     1.4                                      mime_ciphertext, 
     1.5                                      false, 
     1.6                                      false);
     1.7 +    
     1.8 +    if (tmp_status != PEP_STATUS_OK)
     1.9 +        status = tmp_status;
    1.10  
    1.11  pEp_error:
    1.12      free_message(tmp_msg);
     2.1 --- a/sync/gen_statemachine.ysl2	Mon Nov 18 14:45:17 2019 +0100
     2.2 +++ b/sync/gen_statemachine.ysl2	Mon Nov 18 23:47:41 2019 +0100
     2.3 @@ -307,6 +307,10 @@
     2.4                      goto the_end;
     2.5                  }
     2.6  
     2.7 +                status = set_all_userids_to_own(session, own_identities);
     2.8 +                if (status != PEP_STATUS_OK)
     2.9 +                    goto the_end;
    2.10 +                    
    2.11                  ev->own_identities = own_identities;
    2.12  
    2.13                  int result = session->inject_«yml:lcase(@name)»_event(ev,