projects
/
mech_eap.orig
/ 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.orig]
/
inquire_context.c
diff --git
a/inquire_context.c
b/inquire_context.c
index
4646b49
..
670f304
100644
(file)
--- a/
inquire_context.c
+++ b/
inquire_context.c
@@
-45,10
+45,12
@@
gss_inquire_context(OM_uint32 *minor,
{
OM_uint32 major, tmpMinor;
- *minor = 0;
-
- if (ctx == GSS_C_NO_CONTEXT)
+ if (ctx == GSS_C_NO_CONTEXT) {
+ *mionr = EINVAL;
return GSS_S_NO_CONTEXT;
+ }
+
+ *minor = 0;
GSSEAP_MUTEX_LOCK(&ctx->mutex);