aboutsummaryrefslogtreecommitdiffstats
path: root/apps/enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 842036697c..d5db3bf0e1 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -448,7 +448,7 @@ bad:
"invalid hex salt value\n");
goto end;
}
- } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) <= 0)
+ } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) < 0)
goto end;
/* If -P option then don't bother writing */
if((printkey != 2)