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~53 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=4d237fcae4281703d5cbe1deb131dc5ada6482e0 Fix a couple of crashers in case of invalid radsec configuration --- diff --git a/accept_sec_context.c b/accept_sec_context.c index dd8ec4e..4d92c80 100644 --- a/accept_sec_context.c +++ b/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/display_status.c b/display_status.c index 43f285b..c3c3cea 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);