From 96935f443c908e1e751a25bd91ea4640969fd9cb Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 27 Sep 2010 23:04:35 +0200 Subject: [PATCH] Empty authnid means GSS_C_NO_NAME --- plugins/gs2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gs2.c b/plugins/gs2.c index 3304968..5b87062 100644 --- a/plugins/gs2.c +++ b/plugins/gs2.c @@ -1595,7 +1595,8 @@ gs2_get_init_creds(context_t *text, /* * If the application has provided an authentication identity, parse it. */ - if (text->client_name == GSS_C_NO_NAME && oparams->authid != NULL) { + if (text->client_name == GSS_C_NO_NAME && + oparams->authid != NULL && oparams->authid[0] != '\0') { gss_buffer_desc name_buf; name_buf.length = strlen(oparams->authid); -- 2.1.4