projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
improved error checking and some fixes
[openssl.git]
/
crypto
/
ocsp
/
ocsp_cl.c
diff --git
a/crypto/ocsp/ocsp_cl.c
b/crypto/ocsp/ocsp_cl.c
index 9b3e6dd8ca2251189ccb70f52ac0f1f77aa0bf5d..17bab5fc59c7e3777e7a86398de4a95536e2e2b6 100644
(file)
--- a/
crypto/ocsp/ocsp_cl.c
+++ b/
crypto/ocsp/ocsp_cl.c
@@
-101,6
+101,8
@@
int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm)
{
GENERAL_NAME *gen;
gen = GENERAL_NAME_new();
+ if (gen == NULL)
+ return 0;
if (!X509_NAME_set(&gen->d.directoryName, nm))
{
GENERAL_NAME_free(gen);