diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-05-09 07:50:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-05-09 07:50:08 +0000 |
| commit | e8c53abe6c3922b05ff097d8f8f9730850be3e52 (patch) | |
| tree | 50e37e6caf8e0237c5fc820284cab1d4db571ef2 /src/Peer.cc | |
| parent | 4e18c92371037cafbf2442eed9692adf8c93f4e6 (diff) | |
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Initialized _peerId
* src/Peer.cc
Diffstat (limited to 'src/Peer.cc')
| -rw-r--r-- | src/Peer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Peer.cc b/src/Peer.cc index ec2413fe..41920266 100644 --- a/src/Peer.cc +++ b/src/Peer.cc @@ -56,6 +56,7 @@ Peer::Peer(std::string ipaddr, uint16_t port, bool incoming): _res(0), _incoming(incoming) { + memset(_peerId, 0, PEER_ID_LENGTH); resetStatus(); std::string idSeed = ipaddr+":"+Util::uitos(port); #ifdef ENABLE_MESSAGE_DIGEST |
