Add CHANGES entry for OPENSSL_NO_TLSEXT removal
[openssl.git] / apps / x509.c
index 5938b434129807bb7d9f66ec62957ae8a4b63200..f22eef18f39da39780666092f90e31398e9a0de7 100644 (file)
@@ -1021,11 +1021,9 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
     }
     if (sno)
         bs = sno;
-    else if (!(bs = x509_load_serial(CAfile, serialfile, create)))
+    else if ((bs = x509_load_serial(CAfile, serialfile, create)) == NULL)
         goto end;
 
-/*      if (!X509_STORE_add_cert(ctx,x)) goto end;*/
-
     /*
      * NOTE: this certificate can/should be self signed, unless it was a
      * certificate request in which case it is not.