Remove /* foo.c */ comments
[openssl.git] / crypto / ocsp / ocsp_srv.c
index 8f196c81ff406790b6f371af9a89dde3352f4a06..e98c6491b2ac0e84814ac48f37dc64c4be639813 100644 (file)
@@ -1,4 +1,3 @@
-/* ocsp_srv.c */
 /*
  * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
  * 2001.
@@ -184,11 +183,13 @@ OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,
         break;
 
     case V_OCSP_CERTSTATUS_GOOD:
-        cs->value.good = ASN1_NULL_new();
+        if ((cs->value.good = ASN1_NULL_new()) == NULL)
+            goto err;
         break;
 
     case V_OCSP_CERTSTATUS_UNKNOWN:
-        cs->value.unknown = ASN1_NULL_new();
+        if ((cs->value.unknown = ASN1_NULL_new()) == NULL)
+            goto err;
         break;
 
     default: