summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-08 10:19:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-08 10:19:15 +0100
commit041b82e6ce6c7c5af945211c267f179da4bd298d (patch)
tree7ca4f9c4ce9d168d45101467effb22ae4b9075c6
parentfd026d844d62d575d555b25dc48a1d7ce9a7db42 (diff)
downloaddabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.tar.gz
dabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.tar.bz2
dabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.zip
Use correct socket for setsockopt SO_NOSIGPIPE
-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");
}