version 1.5, 2015/02/22 22:29:40 |
version 1.6, 2015/02/25 04:56:41 |
|
|
static void |
static void |
hashinfo_free(struct hashinfo *hi) |
hashinfo_free(struct hashinfo *hi) |
{ |
{ |
|
if (hi == NULL) |
|
return; |
|
|
free(hi->filename); |
free(hi->filename); |
free(hi->target); |
free(hi->target); |
free(hi); |
free(hi); |
|
|
if ((link = hashinfo(NULL, hi->hash, hi->fingerprint)) == NULL) |
if ((link = hashinfo(NULL, hi->hash, hi->fingerprint)) == NULL) |
goto err; |
goto err; |
|
|
printf("hi->is_crl = %i\n", hi->is_crl); |
|
if ((link->filename = hashinfo_linkname(hi)) == NULL) |
if ((link->filename = hashinfo_linkname(hi)) == NULL) |
goto err; |
goto err; |
printf("filename = %s\n", link->filename); |
|
|
|
link->reference = hi; |
link->reference = hi; |
link->changed = 1; |
link->changed = 1; |