src/message_api.c
branchsync
changeset 3655 9ca9bfc0e3f6
parent 3615 37782ea8068a
child 3675 c724fa64eb56
child 3678 07aceb41d96e
     1.1 --- a/src/message_api.c	Thu May 09 10:22:48 2019 +0200
     1.2 +++ b/src/message_api.c	Thu May 09 18:05:12 2019 +0200
     1.3 @@ -1484,6 +1484,7 @@
     1.4                          break;
     1.5                      // else fall through and delete    
     1.6                  case PEP_KEY_IMPORTED:
     1.7 +                case PEP_STATUS_OK:
     1.8                      to_delete = bl;
     1.9                      if (prev)
    1.10                          prev->next = bl->next;
    1.11 @@ -3183,7 +3184,7 @@
    1.12          return false;
    1.13      PEP_STATUS status = import_key(session, the_key->value, the_key->size, NULL);
    1.14      free_bloblist(the_key);
    1.15 -    if (status == PEP_KEY_IMPORTED)
    1.16 +    if (status == PEP_STATUS_OK || status == PEP_KEY_IMPORTED)
    1.17          return true;
    1.18      return false;
    1.19  }