--- embedaddon/mpd/src/input.c 2012/02/21 23:32:47 1.1 +++ embedaddon/mpd/src/input.c 2023/09/27 11:08:00 1.1.1.2.2.1 @@ -101,9 +101,16 @@ InputDispatch(Bund b, Link l, int proto, Mbuf bp) return(0); case PROTO_PAP: case PROTO_CHAP: + AuthInput(l, proto, bp); + return(0); case PROTO_EAP: +#ifdef USE_RADIUS AuthInput(l, proto, bp); return(0); +#else + reject = 1; + goto done; +#endif case PROTO_MP: if (!Enabled(&l->conf.options, LINK_CONF_MULTILINK)) reject = 1; @@ -232,7 +239,7 @@ InputMPLink(Bund b, int proto, Mbuf pkt) case PROTO_LCP: if (MBLEN(pkt) < sizeof(hdr)) break; - hdr = (struct fsmheader *)MBDATA(pkt); + hdr = (struct fsmheader *)(void *)MBDATA(pkt); switch (hdr->code) { case CODE_CODEREJ: /* these two are OK */ case CODE_PROTOREJ: