Pass up error code from PEM format parser.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25220 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-05-25 23:43:11 +00:00
parent afa607c8f4
commit 1eca860a46

View File

@@ -340,8 +340,12 @@ pem_func(hx509_context context, const char *type,
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
header, data, len, ai);
if (ret == 0)
break;
if (ret) {
hx509_set_error_string(context, HX509_ERROR_APPEND, ret,
"Failed parseing PEM format %s", type);
return ret;
}
break;
}
}
if (j == sizeof(formats)/sizeof(formats[0])) {