summaryrefslogtreecommitdiff
path: root/src/core/ns_sendpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ns_sendpass.c')
-rw-r--r--src/core/ns_sendpass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ns_sendpass.c b/src/core/ns_sendpass.c
index 7f5e3ee25..503141b61 100644
--- a/src/core/ns_sendpass.c
+++ b/src/core/ns_sendpass.c
@@ -100,6 +100,10 @@ class NSSendPass : public Module
if (!UseMail)
throw ModuleException("Not using mail, whut.");
+
+ char tmp_pass[PASSMAX];
+ if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1))
+ throw ModuleException("Incompatible with the encryption module being used");
}
};