Diff

Differences From Artifact [aa058371f0]:

To Artifact [a17e1982da]:


  2743   2743   
  2744   2744   	*count = outidx;
  2745   2745   
  2746   2746   	if (certs_resizable) {
  2747   2747   		if (*count != 0) {
  2748   2748   			certs = realloc(certs, sizeof(*certs) * (*count));
  2749   2749   		} else {
         2750  +			free(certs);
         2751  +
  2750   2752   			certs = NULL;
  2751   2753   		}
  2752   2754   	}
  2753   2755   
  2754   2756   	slot->cached_certs = cackey_copy_certs(NULL, certs, *count);
  2755   2757   	slot->cached_certs_count = *count;
  2756   2758