diff --git a/libretroshare/src/ft/fttransfermodule.cc b/libretroshare/src/ft/fttransfermodule.cc index 74347f515..a0e8a2d7e 100644 --- a/libretroshare/src/ft/fttransfermodule.cc +++ b/libretroshare/src/ft/fttransfermodule.cc @@ -328,7 +328,7 @@ bool ftTransferModule::getChunk(const std::string& peer_id,uint32_t size_hint,ui #endif bool source_peer_map_needed ; - bool file_is_complete ; + bool file_is_complete = false; bool val = mFileCreator->getMissingChunk(peer_id,size_hint,offset, chunk_size,source_peer_map_needed,file_is_complete); diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 182429249..9d0e5267f 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -139,20 +139,26 @@ p3ConnectMgr::p3ConnectMgr() mStatusChanged(false) { /* setup basics of own state */ - ownState.id = AuthSSL::getAuthSSL()->OwnId(); - ownState.gpg_id = AuthGPG::getAuthGPG()->getGPGOwnId(); - ownState.name = AuthGPG::getAuthGPG()->getGPGOwnName(); - ownState.location = AuthSSL::getAuthSSL()->getOwnLocation(); - ownState.netMode = RS_NET_MODE_UDP; - ownState.netMode |= RS_NET_MODE_TRY_UPNP; + ownState.id = AuthSSL::getAuthSSL()->OwnId(); + ownState.gpg_id = AuthGPG::getAuthGPG()->getGPGOwnId(); + ownState.name = AuthGPG::getAuthGPG()->getGPGOwnName(); + ownState.location = AuthSSL::getAuthSSL()->getOwnLocation(); + ownState.netMode = RS_NET_MODE_UDP; + ownState.netMode |= RS_NET_MODE_TRY_UPNP; //use_extr_addr_finder = true ; use_extr_addr_finder = false; - allow_tunnel_connection = false; - mExtAddrFinder = new ExtAddrFinder; - mNetInitTS = 0; + allow_tunnel_connection = false; + mExtAddrFinder = new ExtAddrFinder; + mNetInitTS = 0; - netReset(); + netFlagExtraAddressCheckOk = false; + netFlagLocalOk = false; + netFlagUpnpOk = false; + netFlagDhtOk = false; + netFlagStunOk = false; + + netReset(); return; } diff --git a/libretroshare/src/upnp/upnphandler.cc b/libretroshare/src/upnp/upnphandler.cc index 9f4880f62..3664c0f57 100644 --- a/libretroshare/src/upnp/upnphandler.cc +++ b/libretroshare/src/upnp/upnphandler.cc @@ -257,7 +257,7 @@ bool upnphandler::shutdown_upnp() upnphandler::upnphandler() :toEnable(false), toStart(false), toStop(false), - eport(0), eport_curr(0) + eport(0),iport(0), eport_curr(0) { }