warp-vpn

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

commit 560425395f0a24a7f2054163083a25ab3915c72d
parent b775bd7c75e7332879b3326038da545c5a6e19ad
Author: sin <sin@2f30.org>
Date:   Sat Apr  2 20:22:49 +0100

style fix

Diffstat:
stun.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/stun.c b/stun.c @@ -487,8 +487,7 @@ readnet(int fd, unsigned char *pt, int len) n = readall(fd, hdr, HDRLEN); CHECKERR(n); - ctlen = unpack16(hdr); - if (ctlen > MAXPAYLOADLEN) + if ((ctlen = unpack16(hdr)) > MAXPAYLOADLEN) ctlen = MAXPAYLOADLEN; n = readall(fd, ct, ctlen);