X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=b15676c88f55f4e9423bd384f5a9e5aba132620e;hb=1ac9a3fbd18f961d604c2c080374b8fc32f155d6;hp=f18dc50ee2f7c919e1af4f0356c4c64a344460e6;hpb=7ac52637659b7f17ab5139010f0436aefcf9625c;p=tinc 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];