From 9bf86e0e66bdfbae92ba016665385101db990d36 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 18 Sep 2019 22:36:56 +0200 Subject: [PATCH] suppressed two uninitialized memory reads --- libretroshare/src/file_sharing/p3filelists.cc | 1 + retroshare-gui/src/gui/settings/ServerPage.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libretroshare/src/file_sharing/p3filelists.cc b/libretroshare/src/file_sharing/p3filelists.cc index 4f16c7448..e4ea57dc7 100644 --- a/libretroshare/src/file_sharing/p3filelists.cc +++ b/libretroshare/src/file_sharing/p3filelists.cc @@ -65,6 +65,7 @@ p3FileDatabase::p3FileDatabase(p3ServiceControl *mpeers) mRemoteDirectories.clear() ; // we should load them! mOwnId = mpeers->getOwnId() ; + mBannedFileListNeedsUpdate = false; mLocalSharedDirs = new LocalDirectoryStorage(mFileSharingDir + "/" + LOCAL_SHARED_DIRS_FILE_NAME,mOwnId); mHashCache = new HashStorage(mFileSharingDir + "/" + HASH_CACHE_FILE_NAME) ; diff --git a/retroshare-gui/src/gui/settings/ServerPage.cpp b/retroshare-gui/src/gui/settings/ServerPage.cpp index 367f982ba..1f178405d 100755 --- a/retroshare-gui/src/gui/settings/ServerPage.cpp +++ b/retroshare-gui/src/gui/settings/ServerPage.cpp @@ -80,6 +80,7 @@ ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags) ui.setupUi(this); manager = NULL ; + mOngoingConnectivityCheck = -1; if(RsAccounts::isHiddenNode()) {