From: Luke Howard Date: Mon, 28 Feb 2011 22:54:45 +0000 (+1100) Subject: Fix a couple of crashers in case of invalid radsec configuration X-Git-Tag: vm/20110310~57 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=f508d0477dda526895e9652234be4d62dd2ddb78 Fix a couple of crashers in case of invalid radsec configuration --- diff --git a/mech_eap/accept_sec_context.c b/mech_eap/accept_sec_context.c index dd8ec4e..4d92c80 100644 --- a/mech_eap/accept_sec_context.c +++ b/mech_eap/accept_sec_context.c @@ -439,7 +439,8 @@ eapGssSmAcceptAuthenticate(OM_uint32 *minor, major = GSS_S_CONTINUE_NEEDED; cleanup: - rs_request_destroy(request); + if (request != NULL) + rs_request_destroy(request); return major; } diff --git a/mech_eap/display_status.c b/mech_eap/display_status.c index 43f285b..c3c3cea 100644 --- a/mech_eap/display_status.c +++ b/mech_eap/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);