Fix the problem when npppd receives a zero length 1701/udp packet. If
authoryasuoka <yasuoka@openbsd.org>
Tue, 23 Jun 2015 06:59:54 +0000 (06:59 +0000)
committeryasuoka <yasuoka@openbsd.org>
Tue, 23 Jun 2015 06:59:54 +0000 (06:59 +0000)
commit3a6fc3410e0d0c768bb4489c48248cfa629d8ef7
tree679d668c87376eb7e1f55b3fc6e4e1d02b4bd283
parent41f57ac84df0f85d5d39e3924c51643fdaa5b077
Fix the problem when npppd receives a zero length 1701/udp packet.  If
it receives such packets when the errno is not EAGAIN or EINTR, it had
closed all L2TP sessions and stoppped the L2TP server.  Also fix the
receiving GRE packet since it potentially has the same problem.
usr.sbin/npppd/l2tp/l2tpd.c
usr.sbin/npppd/pptp/pptpd.c