warp-vpn

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

commit 12e4ba80cf650809d6695974321d8f12bcb37c71
parent 8b399f7c897721ddb775427007e7edb995d2b425
Author: sin <sin@2f30.org>
Date:   Mon, 21 Mar 2016 12:14:58 +0000

Header is loaded in a separate buffer so adjust sizes

Diffstat:
Mstun.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stun.c b/stun.c @@ -224,8 +224,8 @@ readall(int fd, void *buf, int len) int readnet(int fd, unsigned char *buf, int len) { - unsigned char decbuf[MTU + AES_BLOCK_SIZE + HDRLEN]; - unsigned char encbuf[MTU + AES_BLOCK_SIZE + HDRLEN]; + unsigned char decbuf[MTU + AES_BLOCK_SIZE]; + unsigned char encbuf[MTU + AES_BLOCK_SIZE]; unsigned char hdr[HDRLEN]; int n, pktlen;