(hx509_certs_init): pass the right error code back

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17389 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-05-01 13:36:07 +00:00
parent 78cb38d2ef
commit a7e3644eb9

View File

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