projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stop raising ERR_R_MALLOC_FAILURE in most places
[openssl.git]
/
crypto
/
rand
/
rand_lib.c
diff --git
a/crypto/rand/rand_lib.c
b/crypto/rand/rand_lib.c
index 227c5051170411595eba8841e6ad7547cb12d475..c69fc4f2afba3d72d03d9bdcdabbeb81bede7171 100644
(file)
--- a/
crypto/rand/rand_lib.c
+++ b/
crypto/rand/rand_lib.c
@@
-731,10
+731,8
@@
static int random_set_string(char **p, const char *s)
if (s != NULL) {
d = OPENSSL_strdup(s);
- if (d == NULL) {
- ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
+ if (d == NULL)
return 0;
- }
}
OPENSSL_free(*p);
*p = d;