Empty authnid means GSS_C_NO_NAME
authorLuke Howard <lukeh@padl.com>
Mon, 27 Sep 2010 21:04:35 +0000 (23:04 +0200)
committerLuke Howard <lukeh@padl.com>
Mon, 27 Sep 2010 21:04:35 +0000 (23:04 +0200)
plugins/gs2.c

index 3304968..5b87062 100644 (file)
@@ -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);