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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user