Skip to content

iroute: release old peer context when adding iroute#126

Merged
lstipakov merged 2 commits into
OpenVPN:multipeerfrom
lstipakov:multipeer
Aug 29, 2025
Merged

iroute: release old peer context when adding iroute#126
lstipakov merged 2 commits into
OpenVPN:multipeerfrom
lstipakov:multipeer

Conversation

@lstipakov

Copy link
Copy Markdown
Member

No description provided.

When the same client reconnects, we add the same iroute
but with different peer context. We update the node
and overwrite the old peer context, leaking it.

Fix by releasing the old peer context if it exists.

GitHub: OpenVPN#125

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Signed-off-by: Lev Stipakov <lev@openvpn.net>
@lstipakov lstipakov merged commit c73011a into OpenVPN:multipeer Aug 29, 2025
8 checks passed
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.

1 participant