merged
authorKrista Bennett <krista@pep-project.org>
Wed, 28 Feb 2018 10:07:05 +0100
changeset 25462e72f9667438
parent 2544 590e664f45a5
parent 2545 684e48c565db
child 2547 f7c2c8840267
child 2550 02d3455902ba
merged
     1.1 --- a/src/message_api.c	Tue Feb 27 08:40:40 2018 +0100
     1.2 +++ b/src/message_api.c	Wed Feb 28 10:07:05 2018 +0100
     1.3 @@ -3684,8 +3684,18 @@
     1.4      else
     1.5          status = myself(session, msg->from);
     1.6  
     1.7 -    if (status != PEP_STATUS_OK)
     1.8 -        goto pep_error;
     1.9 +    switch (status) {
    1.10 +        case PEP_KEY_NOT_FOUND:
    1.11 +        case PEP_KEY_UNSUITABLE:
    1.12 +        case PEP_KEY_BLACKLISTED:
    1.13 +        case PEP_CANNOT_FIND_IDENTITY:
    1.14 +        case PEP_CANNOT_FIND_ALIAS:
    1.15 +            status = PEP_STATUS_OK;
    1.16 +        case PEP_STATUS_OK:
    1.17 +            break;
    1.18 +        default:
    1.19 +            goto pep_error;
    1.20 +    }
    1.21  
    1.22      status = amend_rating_according_to_sender_and_recipients(session, &_rating,
    1.23              msg->from, _keylist);