projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c7256
)
Return an error if attribute context initialisation fails
author
Luke Howard
<lukeh@padl.com>
Thu, 21 Oct 2010 12:17:31 +0000
(23:17 +1100)
committer
Luke Howard
<lukeh@padl.com>
Thu, 21 Oct 2010 12:17:31 +0000
(23:17 +1100)
accept_sec_context.c
patch
|
blob
|
history
diff --git
a/accept_sec_context.c
b/accept_sec_context.c
index
4d55f9f
..
60f9619
100644
(file)
--- a/
accept_sec_context.c
+++ b/
accept_sec_context.c
@@
-108,6
+108,10
@@
acceptReadyEap(OM_uint32 *minor, gss_ctx_id_t ctx, gss_cred_id_t cred)
return major;
ctx->initiatorName->attrCtx = gssEapCreateAttrContext(cred, ctx);
+ if (ctx->initiatorName->attrCtx == NULL) {
+ *minor = GSSEAP_ATTR_CONTEXT_FAILURE;
+ return GSS_S_FAILURE;
+ }
*minor = 0;
return GSS_S_COMPLETE;