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:
17973ac
)
don't set major = GSS_S_FAILURE twice
author
Luke Howard
<lukeh@padl.com>
Mon, 2 Dec 2013 06:07:19 +0000
(17:07 +1100)
committer
Kevin Wasserman
<kevin.wasserman@painless-security.com>
Thu, 19 Dec 2013 17:17:56 +0000
(12:17 -0500)
mech_eap/util_context.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_context.c
b/mech_eap/util_context.c
index
57bd151
..
7663f3d
100644
(file)
--- a/
mech_eap/util_context.c
+++ b/
mech_eap/util_context.c
@@
-282,7
+282,6
@@
gssEapMakeOrVerifyTokenMIC(OM_uint32 *minor,
kiov = GSSEAP_CALLOC(kiovCount, sizeof(*kiov));
if (kiov == NULL) {
- major = GSS_S_FAILURE;
*minor = ENOMEM;
goto cleanup;
}
@@
-290,13
+289,11
@@
gssEapMakeOrVerifyTokenMIC(OM_uint32 *minor,
innerTokTypes = GSSEAP_MALLOC(4 * tokens->buffers.count);
if (innerTokTypes == NULL) {
*minor = ENOMEM;
- major = GSS_S_FAILURE;
goto cleanup;
}
innerTokLengths = GSSEAP_MALLOC(4 * tokens->buffers.count);
if (innerTokLengths == NULL) {
- major = GSS_S_FAILURE;
*minor = ENOMEM;
goto cleanup;
}