diff options
author | Bodo Möller <bodo@openssl.org> | 2000-03-03 08:51:25 +0100 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-03-03 08:51:25 +0100 |
commit | d6f68fa3149102bc6778935c700af5c7b4044d7d (patch) | |
tree | 3d77118b24f5544f9b9f4c34148b662a4cb83e38 /crypto/pkcs12/p12_mutl.c | |
parent | Make name_funcs_stack static. (diff) | |
download | openssl-d6f68fa3149102bc6778935c700af5c7b4044d7d.tar.xz openssl-d6f68fa3149102bc6778935c700af5c7b4044d7d.zip |
Fix for previous patch: If RAND_pseudo_bytes returns 0, this is not an error.
Diffstat (limited to '')
-rw-r--r-- | crypto/pkcs12/p12_mutl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs12/p12_mutl.c b/crypto/pkcs12/p12_mutl.c index 4e0a7cbed8..369257ed4c 100644 --- a/crypto/pkcs12/p12_mutl.c +++ b/crypto/pkcs12/p12_mutl.c @@ -157,7 +157,7 @@ int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen, return 0; } if (!salt) { - if (RAND_pseudo_bytes (p12->mac->salt->data, saltlen) <= 0) + if (RAND_pseudo_bytes (p12->mac->salt->data, saltlen) < 0) return 0; } else memcpy (p12->mac->salt->data, salt, saltlen); |