warp-vpn

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

commit 8156207617024e8548d0d491f4aba95a691d8bfd
parent f77cdbc47350a36c0f1c5e5fd86f0aa71fa4c0b2
Author: sin <sin@2f30.org>
Date:   Thu Mar 24 18:25:54 +0000

sync

Diffstat:
stun.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/stun.c b/stun.c @@ -403,8 +403,7 @@ readnet(int fd, unsigned char *buf, int len) n = readall(fd, hdr, sizeof(hdr)); if (n <= 0) return n; - pktlen = unpack16(hdr); - paddedlen = padto(pktlen, AES_BLOCK_SIZE); + paddedlen = padto(pktlen = unpack16(hdr), AES_BLOCK_SIZE); if (paddedlen < 0 || paddedlen > MTU + AES_BLOCK_SIZE) { logwarn("bogus payload length: %d", paddedlen); return -1;