From: Luke Howard Date: Mon, 27 Sep 2010 21:04:35 +0000 (+0200) Subject: Empty authnid means GSS_C_NO_NAME X-Git-Url: http://www.project-moonshot.org/gitweb/?p=cyrus-sasl.git;a=commitdiff_plain;h=96935f443c908e1e751a25bd91ea4640969fd9cb Empty authnid means GSS_C_NO_NAME --- 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);