Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 883a796a authored by Andriy Gelman's avatar Andriy Gelman Committed by github-actions[bot]
Browse files

net: route: Fix pkt leak if net_send_data() fails


If the call to net_send_data() fails, for example if the forwading
interface is down, then the pkt will leak. The reference taken by
net_pkt_shallow_clone() will never be released. Fix the problem
by dropping the rerefence count in the error path.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
(cherry picked from commit a3cdb210)
parent 74e647d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment