warp-vpn

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

commit 63121623119e25c7d23971feaec64e84a07489ee
parent b5dbc2d229a56f06d2fe14713f7c6a888f76b610
Author: sin <sin@2f30.org>
Date:   Thu, 23 Mar 2017 16:48:09 +0000

Match plaintext/ciphertext length type

Diffstat:
Mnetpkt.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/netpkt.c b/netpkt.c @@ -81,7 +81,8 @@ netread(int fd, unsigned char *pt, unsigned long long ptlen, unsigned long long *outlen) { unsigned long long buflen = noncelen + HDRLEN + ptlen + taglen; - int n, ctlen; + unsigned long long ctlen; + int n; if (buflen > maxbuflen) fatalx("packet is too large");