Check for FindNextFile when defining it rather than FindFirstFile
[oweals/openssl.git] / crypto / ocsp / ocsp_ht.c
index a05304748a3d1dd26d796ae19e81ee62a83cd66f..bac35f8de156eea5a2e24fc2edf082c9b36c9cee 100644 (file)
@@ -571,6 +571,9 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
 
        ctx = OCSP_sendreq_new(b, path, req, -1);
 
+       if (!ctx)
+               return NULL;
+
        do
                {
                rv = OCSP_sendreq_nbio(&resp, ctx);