From 9490252d18b93f3fe02b0977510908a7dbbd45b1 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 6 Oct 2011 16:38:35 +0000 Subject: [PATCH] Initialize localname on error in gss_localname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25316 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/gssd_pname_to_uid.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/gssapi/mechglue/gssd_pname_to_uid.c b/src/lib/gssapi/mechglue/gssd_pname_to_uid.c index eab6bd6f5..7254c3a41 100644 --- a/src/lib/gssapi/mechglue/gssd_pname_to_uid.c +++ b/src/lib/gssapi/mechglue/gssd_pname_to_uid.c @@ -124,10 +124,11 @@ gss_localname(OM_uint32 *minor, gss_union_name_t unionName; gss_name_t mechName = GSS_C_NO_NAME, mechNameP; - /* - * find the appropriate mechanism specific pname_to_uid procedure and - * call it. - */ + if (localname != GSS_C_NO_BUFFER) { + localname->length = 0; + localname->value = NULL; + } + if (minor == NULL) return GSS_S_CALL_INACCESSIBLE_WRITE; -- 2.26.2