Skip to content
Commit 17f852f3 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Fabio Baltieri
Browse files

net: if: ipv6: Do not crash if there are no network interfaces



When trying to get IPv6 prefix, if there are no network interfaces
then the net_if_get_default() will return NULL but we should not
crash at that point but return gracefully.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent c0b7d8f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment