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:
77af507
)
Treat empty cert hash as NULL (LP: #917956)
author
Sam Hartman
<hartmans@painless-security.com>
Wed, 18 Jan 2012 00:27:48 +0000
(19:27 -0500)
committer
Sam Hartman
<hartmans@painless-security.com>
Wed, 18 Jan 2012 00:33:54 +0000
(19:33 -0500)
mech_eap/util_moonshot.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_moonshot.c
b/mech_eap/util_moonshot.c
index
dc0c35e
..
cf64083
100644
(file)
--- a/
mech_eap/util_moonshot.c
+++ b/
mech_eap/util_moonshot.c
@@
-194,7
+194,8
@@
libMoonshotResolveInitiatorCred(OM_uint32 *minor,
gss_release_buffer(&tmpMinor, &cred->subjectNameConstraint);
gss_release_buffer(&tmpMinor, &cred->subjectAltNameConstraint);
- if (serverCertificateHash != NULL) {
+ if ((serverCertificateHash != NULL)
+ && (strlen(serverCertificateHash) > 0)) {
size_t len = strlen(serverCertificateHash);
#define HASH_PREFIX "hash://server/sha256/"