projects
/
cyrus-sasl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0bbf08
)
Empty authnid means GSS_C_NO_NAME
author
Luke Howard
<lukeh@padl.com>
Mon, 27 Sep 2010 21:04:35 +0000
(23:04 +0200)
committer
Luke Howard
<lukeh@padl.com>
Mon, 27 Sep 2010 21:04:35 +0000
(23:04 +0200)
plugins/gs2.c
patch
|
blob
|
history
diff --git
a/plugins/gs2.c
b/plugins/gs2.c
index
3304968
..
5b87062
100644
(file)
--- 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 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);
gss_buffer_desc name_buf;
name_buf.length = strlen(oparams->authid);