projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec71cb3
)
If RADIUS returns a present but empty PW_USER_NAME, treat as anonymous.
author
Luke Howard
<lukeh@padl.com>
Thu, 31 Mar 2011 07:55:25 +0000
(18:55 +1100)
committer
Luke Howard
<lukeh@padl.com>
Thu, 31 Mar 2011 07:55:25 +0000
(18:55 +1100)
accept_sec_context.c
patch
|
blob
|
history
diff --git
a/accept_sec_context.c
b/accept_sec_context.c
index
afbfb3f
..
a0421ea
100644
(file)
--- a/
accept_sec_context.c
+++ b/
accept_sec_context.c
@@
-72,7
+72,7
@@
acceptReadyEap(OM_uint32 *minor, gss_ctx_id_t ctx, gss_cred_id_t cred)
major = gssEapRadiusGetRawAvp(minor, ctx->acceptorCtx.vps,
PW_USER_NAME, 0, &vp);
- if (major == GSS_S_COMPLETE) {
+ if (major == GSS_S_COMPLETE
&& vp->length
) {
nameBuf.length = vp->length;
nameBuf.value = vp->vp_strvalue;
} else {