Fix a couple of crashers in case of invalid radsec configuration
authorLuke Howard <lukeh@padl.com>
Mon, 28 Feb 2011 22:54:45 +0000 (09:54 +1100)
committerLuke Howard <lukeh@padl.com>
Mon, 28 Feb 2011 22:54:45 +0000 (09:54 +1100)
accept_sec_context.c
display_status.c

index dd8ec4e..4d92c80 100644 (file)
@@ -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;
 }
index 43f285b..c3c3cea 100644 (file)
@@ -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);