commit ffe19b0b3e2279d09c50fd994ff9b17180c71cfe
parent e275139b3d1a5e182d8f1018ecbd1f228c55dd18
Author: sin <sin@2f30.org>
Date: Sat, 2 Apr 2016 08:59:17 +0100
fix style
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/stun.c b/stun.c
@@ -580,11 +580,10 @@ tunnel(int netfd, int devfd)
n = readnet(netfd, buf, MAXPAYLOADLEN);
if (n <= 0)
return -1;
- if (n == BADPKT) {
+ if (n == BADPKT)
logwarn("bad packet");
- } else {
+ else
writedev(devfd, buf, n);
- }
}
if (pfd[1].revents & (POLLIN | POLLHUP)) {