Set ref to 1 for the new object.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21080 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-13 01:06:25 +00:00
parent 811bb58fb6
commit cadd30c594

View File

@@ -112,6 +112,7 @@ hx509_certs_init(hx509_context context,
return ENOMEM;
}
c->ops = ops;
c->ref = 1;
ret = (*ops->init)(context, c, &c->ops_data, flags, residue, lock);
if (ret) {