projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Create a libctx aware X509_verify_ex()
[openssl.git]
/
crypto
/
params.c
diff --git
a/crypto/params.c
b/crypto/params.c
index 58a4710e47828137d7dbdad18b6b8195d5f5c697..64d53c50e3a12d3263a3f07a548b42bb48fddb78 100644
(file)
--- a/
crypto/params.c
+++ b/
crypto/params.c
@@
-776,6
+776,11
@@
static int get_string_internal(const OSSL_PARAM *p, void **val, size_t max_len,
if (used_len != NULL)
*used_len = sz;
+ if (sz == 0)
+ return 1;
+ if (p->data == NULL)
+ return 0;
+
if (*val == NULL) {
char *const q = OPENSSL_malloc(sz);