summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/TcpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp
index 69b6df5..b233c9f 100644
--- a/src/TcpSocket.cpp
+++ b/src/TcpSocket.cpp
@@ -57,7 +57,7 @@ TcpSocket::TcpSocket(int port, const string& name) :
#if defined(HAVE_SO_NOSIGPIPE)
int val = 1;
- if (setsockopt(sd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))
+ if (setsockopt(m_sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))
== SOCKET_ERROR) {
throw std::runtime_error("Can't set SO_NOSIGPIPE");
}