ENGINE-398: Fixed bad status return. All previous tests now pass. ENGINE-398
authorKrista Bennett <krista@pep-project.org>
Wed, 22 Aug 2018 11:18:20 +0200
branchENGINE-398
changeset 2863f801618a045c
parent 2862 fd6fb5f6d437
child 2892 033f13ec8c24
ENGINE-398: Fixed bad status return. All previous tests now pass.
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Aug 21 16:21:23 2018 +0200
     1.2 +++ b/src/message_api.c	Wed Aug 22 11:18:20 2018 +0200
     1.3 @@ -3206,6 +3206,7 @@
     1.4          
     1.5          switch (status) {
     1.6              case PEP_CANNOT_FIND_IDENTITY:
     1.7 +                status = PEP_STATUS_OK;
     1.8                  continue;
     1.9              case PEP_STATUS_OK:
    1.10          
    1.11 @@ -3774,7 +3775,7 @@
    1.12      stringpair_list_t* revoke_replace_pairs = NULL;
    1.13      status = check_for_own_revoked_key(session, _keylist, &revoke_replace_pairs);
    1.14  
    1.15 -    assert(status != PEP_STATUS_OK); // FIXME: FOR DEBUGGING ONLY DO NOT LEAVE IN    
    1.16 +    //assert(status != PEP_STATUS_OK); // FIXME: FOR DEBUGGING ONLY DO NOT LEAVE IN    
    1.17      if (status != PEP_STATUS_OK) {
    1.18          // This should really never choke unless the DB is broken.
    1.19          status = PEP_UNKNOWN_DB_ERROR;