Skip to content

Ensure members in PacketMultiplexer are initialized#2535

Merged
joseph-henry merged 1 commit intozerotier:devfrom
cspiegel:uninitialized-vars
Nov 3, 2025
Merged

Ensure members in PacketMultiplexer are initialized#2535
joseph-henry merged 1 commit intozerotier:devfrom
cspiegel:uninitialized-vars

Conversation

@cspiegel
Copy link
Contributor

@cspiegel cspiegel commented Nov 3, 2025

_enabled is set to true by setUpPostDecodeReceiveThreads(), so disabled until then, but the constructor wasn't initializing it. _concurrency is not being used before being set but for safety's sake, ensure it has a starting value as well.

Also, remove the vestigial _rxThreadCount, which is no longer used.

_enabled is set to true by setUpPostDecodeReceiveThreads(), so disabled
until then, but the constructor wasn't initializing it. _concurrency is
not being used before being set but for safety's sake, ensure it has a
starting value as well.

Also, remove the vestigial _rxThreadCount, which is no longer used.
@cspiegel cspiegel requested a review from joseph-henry November 3, 2025 19:25
@CLAassistant
Copy link

CLAassistant commented Nov 3, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@joseph-henry joseph-henry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this.

@joseph-henry joseph-henry merged commit 8d4cb1e into zerotier:dev Nov 3, 2025
5 checks passed
@cspiegel cspiegel deleted the uninitialized-vars branch November 5, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments