rndsort{Miller, Rabin} primality test.
[openssl.git] / apps / enc.c
index 842036697c30631611ce8f7aae3fa030e431fd09..d5db3bf0e1907173ebf216fdf24513b77c1fb358 100644 (file)
@@ -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)