warp-vpn

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

commit 2255e44e2a2055bd17baa085053e340b67b7dc27
parent dbfc11cb8e6a5d522ab45dfa05b006c71ef41e80
Author: sin <sin@2f30.org>
Date:   Tue Apr 12 14:28:46 +0100

use sizeof

Diffstat:
stun.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stun.c b/stun.c @@ -96,7 +96,7 @@ tunnel(int netfd, int devfd) } if (pfd[1].revents & (POLLIN | POLLHUP)) { - n = devread(devfd, buf, MAXPAYLOADLEN); + n = devread(devfd, buf, sizeof(buf)); if (n > 0) if (netwrite(netfd, buf, n, &outlen) == PKTFAILED) return -1;