Revert previous, refcounter is unsigned, so it can never be negative.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16463 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-04 06:33:54 +00:00
parent e0753bff55
commit 7c75e73121

View File

@@ -190,8 +190,8 @@ hx509_cert_ref(hx509_cert cert)
if (cert->ref <= 0)
_hx509_abort("refcount <= 0");
cert->ref++;
if (cert->ref <= 0)
_hx509_abort("refcount <= 0");
if (cert->ref == 0)
_hx509_abort("refcount == 0");
return cert;
}