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:
484ae43
)
If we can't make reauth creds, return GSS_S_UNAVAILABLE
author
Luke Howard
<lukeh@padl.com>
Mon, 25 Oct 2010 21:34:42 +0000
(08:34 +1100)
committer
Luke Howard
<lukeh@padl.com>
Mon, 25 Oct 2010 21:34:42 +0000
(08:34 +1100)
util_reauth.c
patch
|
blob
|
history
diff --git
a/util_reauth.c
b/util_reauth.c
index
141ee77
..
7806671
100644
(file)
--- a/
util_reauth.c
+++ b/
util_reauth.c
@@
-185,14
+185,8
@@
gssEapMakeReauthCreds(OM_uint32 *minor,
code = getAcceptorKey(krbContext, ctx, cred,
&ticket.server, &acceptorKey);
if (code == KRB5_KT_NOTFOUND) {
code = getAcceptorKey(krbContext, ctx, cred,
&ticket.server, &acceptorKey);
if (code == KRB5_KT_NOTFOUND) {
- gss_buffer_desc emptyToken = { 0, "" };
-
- /*
- * If we can't produce the KRB-CRED message, we need to
- * return an empty (not NULL) token to the caller so we
- * don't change the number of authentication legs.
- */
- return duplicateBuffer(minor, &emptyToken, credBuf);
+ *minor = code;
+ return GSS_S_UNAVAILABLE;
} else if (code != 0)
goto cleanup;
} else if (code != 0)
goto cleanup;