소스 검색

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);