Browse Source

One field of MPCSingleIO was not being initialized

Ian Goldberg 1 year ago
parent
commit
703ce889e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      mpcio.hpp

+ 5 - 1
mpcio.hpp

@@ -144,7 +144,11 @@ class MPCSingleIO {
 
 public:
     MPCSingleIO(tcp::socket &&sock) :
-        sock(std::move(sock)), totread(0), totwritten(0) {}
+        sock(std::move(sock)), totread(0), totwritten(0)
+#ifdef SEND_LAMPORT_CLOCKS
+        , recvdataremain(0)
+#endif
+        {}
 
     // Returns 1 if a new message is started, 0 otherwise
     size_t queue(const void *data, size_t len, lamport_t lamport);