Skip to content
Commit 6fe1c904 authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
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 c097b8f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment