projects
/
mech_eap.orig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initial libradsec port
[mech_eap.orig]
/
wrap_iov_length.c
diff --git
a/wrap_iov_length.c
b/wrap_iov_length.c
index
24bc1a5
..
f24976d
100644
(file)
--- a/
wrap_iov_length.c
+++ b/
wrap_iov_length.c
@@
-190,10
+190,12
@@
gss_wrap_iov_length(OM_uint32 *minor,
{
OM_uint32 major;
- *minor = 0;
-
- if (ctx == GSS_C_NO_CONTEXT)
+ if (ctx == GSS_C_NO_CONTEXT) {
+ *minor = EINVAL;
return GSS_S_NO_CONTEXT;
+ }
+
+ *minor = 0;
GSSEAP_MUTEX_LOCK(&ctx->mutex);