mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -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.
|
// Add self into PGP FriendList.
|
||||||
mFriendList[AuthGPG::getAuthGPG()->getGPGOwnId()] = DiscPgpInfo();
|
mFriendList[AuthGPG::getAuthGPG()->getGPGOwnId()] = DiscPgpInfo();
|
||||||
|
|
||||||
rsEvents->registerEventsHandler(
|
mRsEventsHandle = 0 ; // avoids random behavior if not initialized
|
||||||
[this](const RsEvent& event){ rsEventsHandler(event); },
|
rsEvents->registerEventsHandler( [this](const RsEvent& event){ rsEventsHandler(event); }, mRsEventsHandle );
|
||||||
mRsEventsHandle );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue