mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
fixed uninitialized memory read in calling rsservicehandler registerNewService system
This commit is contained in:
parent
2f81b11dee
commit
ff1b2ebde4
@ -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…
x
Reference in New Issue
Block a user