HPCC-25970 Coverity scan mtls socket uninitialized members Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -387,8 +387,8 @@ protected:
MCASTREQ * mcastreq;
size32_t nextblocksize;
- unsigned blockflags;
- unsigned blocktimeoutms;
+ unsigned blockflags = BF_ASYNC_TRANSFER;
+ unsigned blocktimeoutms = WAIT_FOREVER;
bool owned;
enum {accept_not_cancelled, accept_cancel_pending, accept_cancelled} accept_cancel_state;
bool in_accept;
@@ -710,7 +710,7 @@ public:
Owned<ISocket> sock;
Owned<ISocket> listensock;
enum { Snone, Saccept, Sconnect, Srecv, Ssend, Scancelled } state;
- bool cancelling;
+ bool cancelling = false;
SocketEndpoint ep;
CriticalSection crit;
IMPLEMENT_IINTERFACE;
@@ -138,9 +138,9 @@ private:
CStringSet* m_peers;
int m_loglevel;
bool m_isSecure;
- size32_t nextblocksize;
+ size32_t nextblocksize = 0;
#ifdef USERECVSEM
static Semaphore receiveblocksem;
bool receiveblocksemowned; // owned by this socket