diff options
author | Nils Larsch <nils@openssl.org> | 2005-07-26 20:55:17 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-07-26 20:55:17 +0000 |
commit | 3de6d65ea3cb3e8779494629260edc4b6874e2f8 (patch) | |
tree | 69eb243ccee1b02a2c4105576fcf060a06d249c6 /crypto/ocsp | |
parent | fdb0a6e0041a2ca941f1fc1084c028f73a9ef53b (diff) |
improved error checking and some fixes
PR: 1170
Submitted by: Yair Elharrar
Reviewed and edited by: Nils Larsch
Diffstat (limited to 'crypto/ocsp')
-rw-r--r-- | crypto/ocsp/ocsp_cl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c index 9b3e6dd8ca..17bab5fc59 100644 --- 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); |