[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.40 and 1.41

version 1.40, 2021/08/28 05:14:30 version 1.41, 2021/08/28 05:30:09
Line 2246 
Line 2246 
         /* We now just add it to the database */          /* We now just add it to the database */
         row[DB_type] = malloc(2);          row[DB_type] = malloc(2);
   
         tm = X509_get_notAfter(ret);          if ((tm = X509_get_notAfter(ret)) == NULL)
                   goto err;
         row[DB_exp_date] = strndup(tm->data, tm->length);          row[DB_exp_date] = strndup(tm->data, tm->length);
         if (row[DB_type] == NULL || row[DB_exp_date] == NULL) {          if (row[DB_type] == NULL || row[DB_exp_date] == NULL) {
                 BIO_printf(bio_err, "Memory allocation failure\n");                  BIO_printf(bio_err, "Memory allocation failure\n");
Line 2503 
Line 2504 
                 /* We now just add it to the database */                  /* We now just add it to the database */
                 row[DB_type] = malloc(2);                  row[DB_type] = malloc(2);
   
                 tm = X509_get_notAfter(x509);                  if ((tm = X509_get_notAfter(x509)) == NULL)
                           goto err;
                 row[DB_exp_date] = strndup(tm->data, tm->length);                  row[DB_exp_date] = strndup(tm->data, tm->length);
                 if (row[DB_type] == NULL || row[DB_exp_date] == NULL) {                  if (row[DB_type] == NULL || row[DB_exp_date] == NULL) {
                         BIO_printf(bio_err, "Memory allocation failure\n");                          BIO_printf(bio_err, "Memory allocation failure\n");

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41