From 6dc1b500d1d3f39f9c22852042eb6df2a925f058 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sat, 3 Aug 2019 14:23:18 +0200 Subject: [PATCH] Fixed compiling without SSL enabled --- lib/socket.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/socket.cpp b/lib/socket.cpp index 47fdac60..a62b33f6 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -1107,13 +1107,17 @@ Socket::Connection::Connection(const Connection& rhs){ up = rhs.up; down = rhs.down; downbuffer = rhs.downbuffer; +#ifdef SSL if (!rhs.sslConnected){ +#endif if (rhs.sSend >= 0){sSend = dup(rhs.sSend);} if (rhs.sRecv >= 0){sRecv = dup(rhs.sRecv);} #if DEBUG >= DLVL_DEVEL INFO_MSG("Socket original = (%d / %d), copy = (%d / %d)", rhs.sSend, rhs.sRecv, sSend, sRecv); #endif +#ifdef SSL } +#endif } //Assignment constructor @@ -1132,13 +1136,17 @@ Socket::Connection& Socket::Connection::operator=(const Socket::Connection& rhs) up = rhs.up; down = rhs.down; downbuffer = rhs.downbuffer; +#ifdef SSL if (!rhs.sslConnected){ +#endif if (rhs.sSend >= 0){sSend = dup(rhs.sSend);} if (rhs.sRecv >= 0){sRecv = dup(rhs.sRecv);} #if DEBUG >= DLVL_DEVEL INFO_MSG("Socket original = (%d / %d), copy = (%d / %d)", rhs.sSend, rhs.sRecv, sSend, sRecv); #endif +#ifdef SSL } +#endif return *this; }