reset status sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 20 Jan 2020 11:57:38 +0100
branchsync
changeset 4356abf2aaa18e05
parent 4355 66cb18185fce
child 4357 f0e3357418ab
reset status
src/key_reset.c
     1.1 --- a/src/key_reset.c	Mon Jan 20 10:52:53 2020 +0100
     1.2 +++ b/src/key_reset.c	Mon Jan 20 11:57:38 2020 +0100
     1.3 @@ -1040,8 +1040,10 @@
     1.4              const char* own_key = curr_key->value;
     1.5              status = get_identities_by_main_key_id(session, own_key, &key_idents);
     1.6              
     1.7 -            if (status == PEP_CANNOT_FIND_IDENTITY)
     1.8 +            if (status == PEP_CANNOT_FIND_IDENTITY) {
     1.9 +                status = PEP_STATUS_OK;
    1.10                  continue;
    1.11 +            }    
    1.12              else if (status == PEP_STATUS_OK)    
    1.13                  status = _key_reset_device_group_for_shared_key(session, key_idents, own_key, true);            
    1.14              else