Skip to content
Commit cc81dca5 authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

net: if: Fix if_ipv4_get_addr() locking



net_if_lock() should be called only after iface pointer is verified not
to be NULL, otherwise we can end up dereferencing NULL pointer in
certain corner cases.

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