From 4ecc7c14936f6627eec7cf187862438234b11629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 3 Feb 2006 12:50:37 +0000 Subject: [PATCH] Revert previous commit. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16697 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/error_string.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/krb5/error_string.c b/lib/krb5/error_string.c index 7191090c0..7567b25bd 100644 --- a/lib/krb5/error_string.c +++ b/lib/krb5/error_string.c @@ -111,12 +111,9 @@ krb5_have_error_string(krb5_context context) char * KRB5_LIB_FUNCTION krb5_get_error_message(krb5_context context, krb5_error_code code) { - char *str = NULL; + char *str; - HEIMDAL_MUTEX_lock(context->mutex); - if (context->error_string) - str = strdup(context->error_string); - HEIMDAL_MUTEX_unlock(context->mutex); + str = krb5_get_error_string(context); if (str) return str;