diff options
Diffstat (limited to 'src/core/cs_sendpass.c')
-rw-r--r-- | src/core/cs_sendpass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/cs_sendpass.c b/src/core/cs_sendpass.c index e61f6e2ee..8643cdeb5 100644 --- a/src/core/cs_sendpass.c +++ b/src/core/cs_sendpass.c @@ -103,6 +103,10 @@ class CSSendPass : public Module if (!UseMail) throw ModuleException("sendpass may not be loaded if UseMail is loaded"); + + char tmp_pass[PASSMAX]; + if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1)) + throw ModuleException("Incompatible with the encryption module being used"); } }; |