Skip to content
Commit 43e116e4 authored by Robert Lubos's avatar Robert Lubos Committed by Christopher Friedt
Browse files

net: route: Verify if neighbor entry is in use when iterating



Verify the `ref` value of the neighbor entry in `net_route_foreach()`,
so that it only executes the callback on routes in use. Otherwise, the
function could call the callback for the route that has already been
deleted.

This could be encountered when executing `net route` shell command,
which printed the already deleted routes along the existing ones.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent d4d569b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment