summaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 95aae9afb3..e53cf3b415 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -442,6 +442,9 @@ bad:
if (cipher != NULL)
{
+ /* Note that str is NULL if a key was passed on the command
+ * line, so we get no salt in that case. Is this a bug?
+ */
if (str != NULL)
{
/* Salt handling: if encrypting generate a salt and