mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
fixed uninitialized memory read in calling rsservicehandler registerNewService system
This commit is contained in:
parent
2f81b11dee
commit
ff1b2ebde4
1 changed files with 2 additions and 3 deletions
|
@ -110,9 +110,8 @@ p3discovery2::p3discovery2(
|
|||
// Add self into PGP FriendList.
|
||||
mFriendList[AuthGPG::getAuthGPG()->getGPGOwnId()] = DiscPgpInfo();
|
||||
|
||||
rsEvents->registerEventsHandler(
|
||||
[this](const RsEvent& event){ rsEventsHandler(event); },
|
||||
mRsEventsHandle );
|
||||
mRsEventsHandle = 0 ; // avoids random behavior if not initialized
|
||||
rsEvents->registerEventsHandler( [this](const RsEvent& event){ rsEventsHandler(event); }, mRsEventsHandle );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue