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:
f20224c
)
allow GSS_C_NO_CREDENTIAL to gssEapPrimaryMechForCred
author
Luke Howard
<lukeh@padl.com>
Tue, 19 Jun 2012 15:45:38 +0000
(
01:45
+1000)
committer
Luke Howard
<lukeh@padl.com>
Wed, 20 Jun 2012 03:41:08 +0000
(13:41 +1000)
mech_eap/util_cred.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_cred.c
b/mech_eap/util_cred.c
index
746bd61
..
3e67507
100644
(file)
--- a/
mech_eap/util_cred.c
+++ b/
mech_eap/util_cred.c
@@
-241,13
+241,14
@@
cleanup:
gss_OID
gssEapPrimaryMechForCred(gss_cred_id_t cred)
{
- gss_OID
name
Mech = GSS_C_NO_OID;
+ gss_OID
cred
Mech = GSS_C_NO_OID;
- if (cred->mechanisms != GSS_C_NO_OID_SET &&
+ if (cred != GSS_C_NO_CREDENTIAL &&
+ cred->mechanisms != GSS_C_NO_OID_SET &&
cred->mechanisms->count == 1)
-
name
Mech = &cred->mechanisms->elements[0];
+
cred
Mech = &cred->mechanisms->elements[0];
- return
name
Mech;
+ return
cred
Mech;
}
OM_uint32