warp-vpn

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

commit 140f9a3040ed0cc0d988b6b52fe67d74a8364419
parent 8185df99f1342f988b0c25cc6992571e5503bf9f
Author: sin <sin@2f30.org>
Date:   Wed, 30 Mar 2016 09:55:40 +0100

shorter line

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

diff --git a/stun.c b/stun.c @@ -448,7 +448,7 @@ writenet(int fd, unsigned char *pt, int len) { unsigned char payload[MTU + AES_BLOCK_SIZE]; unsigned char hdr[HDRLEN], iv[IVLEN], tag[TAGLEN]; - unsigned char pkt[sizeof(hdr) + sizeof(payload) + sizeof(iv) + sizeof(tag)]; + unsigned char pkt[MTU + AES_BLOCK_SIZE + HDRLEN + IVLEN + TAGLEN]; arc4random_buf(iv, IVLEN); len = aesenc(&ectx, payload, pt, len, aeskey, iv, tag, TAGLEN);