Changeset 5436:17525e17fa7b

Show
Ignore:
Timestamp:
2008-07-01 13:32:33 (5 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Bail out of copy if decryption is requested but the desired engine is missing.
This closes #2684, but handling of mixed crypto in a single message
needs more investigation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • copy.c

    r5435 r5436  
    655655           && (flags & M_CM_DECODE_CRYPT) && (hdr->security & ENCRYPT)) 
    656656  { 
    657     BODY *cur; 
     657    BODY *cur = NULL; 
    658658    FILE *fp; 
    659659 
     
    673673      if (crypt_smime_decrypt_mime (fpin, &fp, hdr->content, &cur)) 
    674674        return (-1); 
     675    } 
     676 
     677    if (!cur) 
     678    { 
     679      mutt_error (_("No decryption engine available for message")); 
     680      return -1; 
    675681    } 
    676682