From e0753bff5593be4eab76c3f820ae22d65a2f24c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 4 Jan 2006 06:32:43 +0000 Subject: [PATCH] (hx509_cert_ref): more refcount paranoia git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16462 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/cert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hx509/cert.c b/lib/hx509/cert.c index bc3948f29..ad4e25638 100644 --- a/lib/hx509/cert.c +++ b/lib/hx509/cert.c @@ -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; }