X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil_context.c;h=61b9b230cef62b0900dc0d8e15c82fb3833b7d9a;hp=80324bf5a48a9c3a5f60c92b99e35485c3bf8b48;hb=55de26d432636a95fb0dc025fa77f8bda6aca71a;hpb=7a6a4f33fbf04fd838da398271af8a50b938fe02 diff --git a/moonshot/mech_eap/util_context.c b/moonshot/mech_eap/util_context.c index 80324bf..61b9b23 100644 --- a/moonshot/mech_eap/util_context.c +++ b/moonshot/mech_eap/util_context.c @@ -52,7 +52,7 @@ gssEapAllocContext(OM_uint32 *minor, } if (GSSEAP_MUTEX_INIT(&ctx->mutex) != 0) { - *minor = errno; + *minor = GSSEAP_GET_LAST_ERROR(); gssEapReleaseContext(&tmpMinor, &ctx); return GSS_S_FAILURE; }