Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.7-branch] net: core: Free packet properly if TTL/hop limit is 0 #87464

Open
wants to merge 1 commit into
base: v3.7-branch
Choose a base branch
from

Conversation

jukkar
Copy link
Member

@jukkar jukkar commented Mar 21, 2025

We drop the packet if TTL or hop limit is 0, but we should also unref the packet in this case because we return 0 to the caller which is not then able to free the packet because it thinks that the packet was sent properly.

Backport 2f1a134 from #87325.

Fixes #87323

We drop the packet if TTL or hop limit is 0, but we should
also unref the packet in this case because we return 0 to
the caller which is not then able to free the packet because
it thinks that the packet was sent properly.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
@jukkar jukkar added area: Networking Backport Backport PR and backport failure issues labels Mar 21, 2025
@jukkar jukkar added this to the v3.7.2 milestone Mar 21, 2025
@jukkar jukkar requested review from pdgendt and rlubos March 21, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking Backport Backport PR and backport failure issues
Projects
Status: To do
Development

Successfully merging this pull request may close these issues.

3 participants