From 1ac9a3fbd18f961d604c2c080374b8fc32f155d6 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 6 Sep 2014 18:16:46 +0100 Subject: [PATCH] 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. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tincctl.c b/src/tincctl.c index f18dc50..b15676c 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]; -- 2.25.1