X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=display_status.c;h=8729a96be81e81d19bb3d638664f9344be994fae;hb=refs%2Fheads%2Fddf-name;hp=43f285bb8aa0ec949e5b142a6fd22f51308cda89;hpb=aa40dd8de138c5a2fcd49023bb6ccac925735c0b;p=mech_eap.orig diff --git a/display_status.c b/display_status.c index 43f285b..8729a96 100644 --- a/display_status.c +++ b/display_status.c @@ -99,7 +99,7 @@ saveStatusInfoNoCopy(OM_uint32 minor, char *message) p->code = minor; p->message = message; - if (p != NULL) + if (next != NULL) *next = p; else GSSEAP_SETSPECIFIC(gssEapStatusInfoKey, p); @@ -157,7 +157,8 @@ gss_display_status(OM_uint32 *minor, return GSS_S_BAD_MECH; } - if (status_type != GSS_C_MECH_CODE) { + if (status_type != GSS_C_MECH_CODE || + *message_context != 0) { /* we rely on the mechglue for GSS_C_GSS_CODE */ *minor = 0; return GSS_S_BAD_STATUS;