1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

value initialize introduction so that expiresAt defaults to zero

This commit is contained in:
Jeff Becker 2021-06-17 05:06:23 -04:00
parent 9f353238af
commit d45f0f8951
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -158,10 +158,10 @@ namespace llarp
OutboundContext::ShiftIntroRouter(const RouterID r)
{
const auto now = Now();
Introduction selectedIntro;
Introduction selectedIntro{};
for (const auto& intro : currentIntroSet.intros)
{
if (intro.expiresAt > selectedIntro.expiresAt && intro.router != r)
if (intro.expiresAt > selectedIntro.expiresAt and intro.router != r)
{
selectedIntro = intro;
}