diff options
-rw-r--r-- | src/util/support/errors.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/support/errors.c b/src/util/support/errors.c index 70e1d59..f8bea07 100644 --- a/src/util/support/errors.c +++ b/src/util/support/errors.c @@ -78,10 +78,9 @@ k5_get_error(struct errinfo *ep, long code) lock(); if (fptr == NULL) { + /* Should be rare; fptr should be set whenever libkrb5 is loaded. */ unlock(); - if (strerror_r(code, buf, sizeof(buf)) == 0) - return oom_check(strdup(buf)); - return oom_check(strdup(strerror(code))); + return oom_check(strdup(_("Error code translation unavailable"))); } r = fptr(code); #ifndef HAVE_COM_ERR_INTL |