handle refcount on NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22265 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -146,6 +146,8 @@ hx509_certs_store(hx509_context context,
|
||||
hx509_certs
|
||||
_hx509_certs_ref(hx509_certs certs)
|
||||
{
|
||||
if (certs == NULL)
|
||||
return NULL;
|
||||
if (certs->ref <= 0)
|
||||
_hx509_abort("certs refcount <= 0");
|
||||
certs->ref++;
|
||||
|
Reference in New Issue
Block a user