diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-08 10:19:15 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-12-08 10:19:15 +0100 |
commit | 041b82e6ce6c7c5af945211c267f179da4bd298d (patch) | |
tree | 7ca4f9c4ce9d168d45101467effb22ae4b9075c6 /src/TcpSocket.cpp | |
parent | fd026d844d62d575d555b25dc48a1d7ce9a7db42 (diff) | |
download | dabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.tar.gz dabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.tar.bz2 dabmux-041b82e6ce6c7c5af945211c267f179da4bd298d.zip |
Use correct socket for setsockopt SO_NOSIGPIPE
Diffstat (limited to 'src/TcpSocket.cpp')
-rw-r--r-- | src/TcpSocket.cpp | 2 |
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"); } |