warp-vpn

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

commit 7a56e13096bdfadf4eb8df66d7de327b9056281d
parent 9ff07df37e8400824b96bb5e037107f388dc158b
Author: sin <sin@2f30.org>
Date:   Wed, 30 Mar 2016 11:39:21 +0100

remove redundant comments

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

diff --git a/stun.c b/stun.c @@ -468,7 +468,6 @@ readnet(int fd, unsigned char *pt, int len) unsigned char hdr[HDRLEN], iv[IVLEN], tag[TAGLEN]; int n, pktlen; - /* read packet length */ n = readall(fd, hdr, HDRLEN); if (n <= 0) return n; @@ -476,7 +475,6 @@ readnet(int fd, unsigned char *pt, int len) pktlen = unpack16(hdr); pktlen &= PKTLENMASK; - /* read IV */ n = readall(fd, iv, IVLEN); if (n <= 0) return n; @@ -496,12 +494,10 @@ readnet(int fd, unsigned char *pt, int len) return BADPKT; } - /* read encrypted payload */ n = readall(fd, payload, pktlen); if (n <= 0) return n; - /* read tag */ n = readall(fd, tag, TAGLEN); if (n <= 0) return n;