Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Sandstedt <[email protected]>
  • Loading branch information
kghost and msandstedt authored Jan 28, 2022
1 parent 2854a15 commit 51ad5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/SessionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class DLL_EXPORT SessionManager : public TransportMgrDelegate
NodeId ephemeralInitiatorNodeID;
do {
ephemeralInitiatorNodeID = static_cast<NodeId>(Crypto::GetRandU64());
} while (ephemeralInitiatorNodeID == kUndefinedNodeId);
} while (!IsOperationalNodeId(ephemeralInitiatorNodeID));
return mUnauthenticatedSessions.AllocInitiator(ephemeralInitiatorNodeID, peerAddress, config);
}

Expand Down

0 comments on commit 51ad5ef

Please sign in to comment.