From 8763264587bb1d3d9d9bc98ef656228fc9d968e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 20 Aug 2004 07:54:58 +0000 Subject: [PATCH] (krb5_get_err_text): if neither of com_right nor strerror finds the error-code, return Unknown error. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14135 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/krb5/context.c b/lib/krb5/context.c index ffd2d6e27..7f1651b17 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -514,6 +514,8 @@ krb5_get_err_text(krb5_context context, krb5_error_code code) p = com_right(context->et_list, code); if(p == NULL) p = strerror(code); + if (p == NULL) + p = "Unknown error"; return p; }