Skip to content
Commit 5bce343f authored by Robert Lubos's avatar Robert Lubos Committed by Fabio Baltieri
Browse files

net: iface: Add NULL pointer check in net_if_ipv6_set_reachable_time



In case the IPv6 context pointer was not set on an interface (for
instance due to IPv6 context shortage), processing the RA message could
lead to a crash (i. e. NULL pointer dereference). Protect against this
by adding NULL pointer check, similarly to other functions in this area.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit c6c20982)
parent ed05fdf0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment