(hx509_get_error_string): if the error code is not the one we expect,

punt and use the default com_err/strerror string instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20912 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-05 03:53:52 +00:00
parent 43ba803237
commit 7761ecce3f

View File

@@ -101,9 +101,9 @@ char *
hx509_get_error_string(hx509_context context, int error_code)
{
struct rk_strpool *p = NULL;
hx509_error msg;
hx509_error msg = context->error;
if (context->error == NULL) {
if (msg == NULL || msg->code != error_code) {
const char *cstr;
char *str;