warp-vpn

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

commit 8d04038d59b1dc78201fef9dd2543b26b56d28ea
parent b9d6b2643295074574f551fbec26b624fb4c2ec4
Author: sin <sin@2f30.org>
Date:   Mon, 21 Mar 2016 19:30:18 +0000

Close netfd

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

diff --git a/stun.c b/stun.c @@ -447,7 +447,9 @@ clientsetup(int tunfd) if (ret < 0) errx(1, "failed to respond to challenge"); - return tunnel(netfd, tunfd); + ret = tunnel(netfd, tunfd); + close(netfd); + return ret; } void