[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.15 and 1.16

version 1.15, 2015/09/21 13:13:06 version 1.16, 2015/09/21 13:31:26
Line 1928 
Line 1928 
   
         tm = X509_get_notAfter(ret);          tm = X509_get_notAfter(ret);
         row[DB_exp_date] = malloc(tm->length + 1);          row[DB_exp_date] = malloc(tm->length + 1);
         if (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");
                 goto err;                  goto err;
         }          }
Line 2181 
Line 2181 
   
                 tm = X509_get_notAfter(x509);                  tm = X509_get_notAfter(x509);
                 row[DB_exp_date] = malloc(tm->length + 1);                  row[DB_exp_date] = malloc(tm->length + 1);
                 if (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");
                         goto err;                          goto err;
                 }                  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16