sync : fix encrypted sync messages not being injected when decrypted from non-sync session
authorEdouard Tisserant <edouard@pep-project.org>
Mon, 24 Oct 2016 20:44:48 +0200
changeset 1329876ad7615d75
parent 1326 3d97f4c0ee25
child 1330 0c55ede4d522
sync : fix encrypted sync messages not being injected when decrypted from non-sync session
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Oct 24 14:38:05 2016 +0200
     1.2 +++ b/src/message_api.c	Mon Oct 24 20:44:48 2016 +0200
     1.3 @@ -1693,7 +1693,7 @@
     1.4          decorate_message(msg, *rating, _keylist);
     1.5          if (imported_keys)
     1.6              remove_attached_keys(msg);
     1.7 -        if (*rating >= PEP_rating_reliable && session->retrieve_next_sync_msg) {
     1.8 +        if (*rating >= PEP_rating_reliable && session->inject_sync_msg) {
     1.9              status = receive_DeviceState_msg(session, msg, *rating, _keylist);
    1.10              if (status == PEP_MESSAGE_CONSUMED || 
    1.11                  status == PEP_MESSAGE_DISCARDED) {