(hx509_cert_free): ok to free NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16836 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -205,6 +205,9 @@ hx509_cert_free(hx509_cert cert)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (cert == NULL)
|
||||
return;
|
||||
|
||||
if (cert->ref <= 0)
|
||||
_hx509_abort("refcount <= 0");
|
||||
if (--cert->ref > 0)
|
||||
|
Reference in New Issue
Block a user