warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit af2fa10bc798c87d367044f95345cee8378b1a64
parent 7daf46dcb6bd8da58c4574b13114560842e7f74d
Author: sin <sin@2f30.org>
Date:   Tue, 29 Mar 2016 11:41:01 +0100

fix comment

Diffstat:
Mstun.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stun.c b/stun.c @@ -478,7 +478,7 @@ readnet(int fd, unsigned char *buf, int len) pktlen &= PKTLENMASK; paddedlen = padto(pktlen, AES_BLOCK_SIZE); - /* attempt to drain an invalid packet */ + /* discard bad packets */ if (pktlen > len || paddedlen > MTU + AES_BLOCK_SIZE) { while (paddedlen) { if (paddedlen > MTU + AES_BLOCK_SIZE)