(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:
Love Hörnquist Åstrand
2006-03-27 21:34:13 +00:00
parent 72e10b58e9
commit e3ef13ddb4

View File

@@ -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)