From: xuyunjia Date: Sun, 18 Oct 2020 15:33:54 +0000 (+0800) Subject: resolve defects: reverse_inull; row[DB_exp_date] referenced before checking X-Git-Tag: openssl-3.0.0-alpha8~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a13c9c9842f54ed8d98c6f37cc4ae6c1cde8b7a;p=thirdparty%2Fopenssl.git resolve defects: reverse_inull; row[DB_exp_date] referenced before checking Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/13170) --- diff --git a/apps/ca.c b/apps/ca.c old mode 100644 new mode 100755 index 4a67d614773..00078f90d49 --- a/apps/ca.c +++ b/apps/ca.c @@ -1924,8 +1924,8 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, row[DB_exp_date][tm->length] = '\0'; row[DB_rev_date] = NULL; row[DB_file] = OPENSSL_strdup("unknown"); - if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) || - (row[DB_file] == NULL) || (row[DB_name] == NULL)) { + if ((row[DB_type] == NULL) || (row[DB_file] == NULL) + || (row[DB_name] == NULL)) { BIO_printf(bio_err, "Memory allocation failure\n"); goto end; }