浏览代码

One field of MPCSingleIO was not being initialized

Ian Goldberg 2 年之前
父节点
当前提交
703ce889e6
共有 1 个文件被更改,包括 5 次插入1 次删除
  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);