projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
return EINVAL if no context
[mech_eap.git]
/
context_time.c
diff --git
a/context_time.c
b/context_time.c
index
a2373f9
..
dd29312
100644
(file)
--- a/
context_time.c
+++ b/
context_time.c
@@
-39,10
+39,12
@@
gss_context_time(OM_uint32 *minor,
{
OM_uint32 major = GSS_S_NO_CONTEXT;
- *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);