From: Etienne Dechamps Date: Sat, 6 Sep 2014 17:16:46 +0000 (+0100) Subject: Fix wrong identifier in SO_NOSIGPIPE call. X-Git-Tag: release-1.1pre11~46 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=1ac9a3fbd18f961d604c2c080374b8fc32f155d6 Fix wrong identifier in SO_NOSIGPIPE call. f134bd0c9c2213fbbb3967f3d784759cb65e2c76 broke the Mac OS X build by introducing a reference to an identifier, c, that doesn't exist. --- diff --git a/src/tincctl.c b/src/tincctl.c index f18dc50e..b15676c8 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -763,7 +763,7 @@ bool connect_tincd(bool verbose) { #ifdef SO_NOSIGPIPE static const int one = 1; - setsockopt(c, SOL_SOCKET, SO_NOSIGPIPE, (void *)&one, sizeof one); + setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, (void *)&one, sizeof one); #endif char data[4096];