fixing wrong condition sync
authorVolker Birk <vb@pep.foundation>
Sun, 21 Oct 2018 11:56:22 +0200
branchsync
changeset 3078c9dcf8aa1a08
parent 3077 cef37ebda63b
child 3079 010b851a6262
fixing wrong condition
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Oct 21 11:54:49 2018 +0200
     1.2 +++ b/src/message_api.c	Sun Oct 21 11:56:22 2018 +0200
     1.3 @@ -907,7 +907,7 @@
     1.4  
     1.5      replace_opt_field(attachment, "X-pEp-Version", PEP_VERSION, true);
     1.6          
     1.7 -    if (!_envelope && (wrap_type != PEP_message_transport)) {
     1.8 +    if (!_envelope || (wrap_type != PEP_message_transport)) {
     1.9          _envelope = extract_minimal_envelope(attachment, PEP_dir_outgoing);
    1.10          status = generate_message_id(_envelope);
    1.11