mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed uninitialized values
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4848 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
522729bae4
commit
5a5c0264d0
@ -2144,6 +2144,7 @@ int p3LinkMgrIMPL::addFriend(const std::string &id, bool isVisible)
|
||||
pcs.name = "NoName";
|
||||
pcs.state = RS_PEER_S_FRIEND;
|
||||
pcs.actions = RS_PEER_NEW;
|
||||
pcs.linkType = RS_NET_CONN_SPEED_UNKNOWN ;
|
||||
|
||||
mFriendList[id] = pcs;
|
||||
|
||||
|
@ -190,24 +190,34 @@ void pqiNetStateBox::reset()
|
||||
mStunDhtSet = false;
|
||||
mStunDhtTS = 0;
|
||||
mStunDhtStable = false;
|
||||
mStunDhtAddr.sin_addr.s_addr = 0 ;
|
||||
mStunDhtAddr.sin_port = 0 ;
|
||||
//struct sockaddr_in mStunDhtAddr;
|
||||
|
||||
mStunProxySet = false;
|
||||
mStunProxySemiStable = false;
|
||||
mStunProxyTS = 0;
|
||||
mStunProxyStable = false;
|
||||
mStunProxyAddr.sin_addr.s_addr = 0 ;
|
||||
mStunProxyAddr.sin_port = 0 ;
|
||||
//struct sockaddr_in mStunProxyAddr;
|
||||
|
||||
mUPnPSet = false;
|
||||
mUPnPActive = false;
|
||||
mUPnPAddr.sin_addr.s_addr = 0 ;
|
||||
mUPnPAddr.sin_port = 0 ;
|
||||
//struct sockaddr_in mUPnPAddr;
|
||||
|
||||
mNatPMPSet = false;
|
||||
mNatPMPActive = false;
|
||||
mNatPMPAddr.sin_addr.s_addr = 0 ;
|
||||
mNatPMPAddr.sin_port = 0 ;
|
||||
//struct sockaddr_in mNatPMPAddr;
|
||||
|
||||
mWebIPSet = false;
|
||||
mWebIPActive = false;
|
||||
mWebIPAddr.sin_addr.s_addr = 0 ;
|
||||
mWebIPAddr.sin_port = 0 ;
|
||||
//struct sockaddr_in mWebIPAddr;
|
||||
|
||||
mPortForwardSet = false;
|
||||
|
@ -39,6 +39,7 @@
|
||||
/****
|
||||
* #define CHAT_DEBUG 1
|
||||
****/
|
||||
#define CHAT_DEBUG 1
|
||||
|
||||
static const int CONNECTION_CHALLENGE_MAX_COUNT = 20 ; // sends a connexion challenge every 20 messages
|
||||
static const int CONNECTION_CHALLENGE_MIN_DELAY = 15 ; // sends a connexion at most every 15 seconds
|
||||
|
Loading…
Reference in New Issue
Block a user