1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

sc_gnrc_icmpv6_echo: check for correct ipv6_addr_split_iface() error

This commit is contained in:
Martine Lenders 2019-07-26 16:48:28 +02:00
parent 36e9d232a6
commit d1abb29665

View File

@ -180,7 +180,7 @@ static int _configure(int argc, char **argv, _ping_data_t *data)
}
#endif
iface = ipv6_addr_split_iface(data->hostname);
if (iface > KERNEL_PID_UNDEF) {
if (iface != -1) {
data->netif = gnrc_netif_get_by_pid(iface);
}
#if GNRC_NETIF_NUMOF == 1