Accept NULL data in mech_eap cb response cb
[mech_eap.git] / mech_eap / init_sec_context.c
index 39929a6..b2afed2 100644 (file)
@@ -313,6 +313,8 @@ peerProcessChbindResponse(void *context, int code, int nsid,
     if (nsid != CHBIND_NSID_RADIUS)
         return;
 
+    if (data == NULL)
+        return;
     msg = radius_parser_start(data, len);
     if (msg == NULL)
         return;