[BACK]Return to ca.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/ca.c between version 1.42 and 1.43

version 1.42, 2021/08/30 12:12:11 version 1.43, 2021/08/30 12:25:54
Line 1745 
Line 1745 
         OPENSSL_STRING *irow = NULL;          OPENSSL_STRING *irow = NULL;
         OPENSSL_STRING *rrow = NULL;          OPENSSL_STRING *rrow = NULL;
   
           *xret = NULL;
   
         tmptm = ASN1_UTCTIME_new();          tmptm = ASN1_UTCTIME_new();
         if (tmptm == NULL) {          if (tmptm == NULL) {
                 BIO_printf(bio_err, "malloc error\n");                  BIO_printf(bio_err, "malloc error\n");
Line 2275 
Line 2277 
                 BIO_printf(bio_err, "TXT_DB error number %ld\n", db->db->error);                  BIO_printf(bio_err, "TXT_DB error number %ld\n", db->db->error);
                 goto err;                  goto err;
         }          }
   
           *xret = ret;
           ret = NULL;
         ok = 1;          ok = 1;
   
  err:   err:
         for (i = 0; i < DB_NUMBER; i++)          for (i = 0; i < DB_NUMBER; i++)
                 free(row[i]);                  free(row[i]);
Line 2285 
Line 2291 
         if (!email_dn)          if (!email_dn)
                 X509_NAME_free(dn_subject);                  X509_NAME_free(dn_subject);
         ASN1_UTCTIME_free(tmptm);          ASN1_UTCTIME_free(tmptm);
         if (ok <= 0) {          X509_free(ret);
                 X509_free(ret);  
                 ret = NULL;  
         } else  
                 *xret = ret;  
   
         return (ok);          return (ok);
 }  }

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43