mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
When the destination address is the loopback address (`::1`) in GNRC the selected network interface typically is `NULL`, as with GNRC no loopback interface de facto exists. So the assertion when checking if the source address is valid if `netif != NULL` fails on that check. This change fixes that issue by checking if the destination address is the loopback address, before checking the validity of the source address.