- q = makeppp(b, p, l, t, s, PPPLCP);
- log(4, session[s].ip, s, t, "LCP: Received EchoReq. Sending EchoReply\n");
+ q = makeppp(b, sizeof(b), p, l, t, s, PPPLCP);
+ if (!q) {
+ log(3, session[s].ip, s, t, " failed to send EchoReply.\n");
+ return;
+ }
+ log(5, session[s].ip, s, t, "LCP: Received EchoReq. Sending EchoReply\n");