From d1abb29665d7f73eb7ae6ca3a45f107b528fe88e Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 26 Jul 2019 16:48:28 +0200 Subject: [PATCH] sc_gnrc_icmpv6_echo: check for correct ipv6_addr_split_iface() error --- sys/shell/commands/sc_gnrc_icmpv6_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_gnrc_icmpv6_echo.c b/sys/shell/commands/sc_gnrc_icmpv6_echo.c index ffdf01a45f..7a49250028 100644 --- a/sys/shell/commands/sc_gnrc_icmpv6_echo.c +++ b/sys/shell/commands/sc_gnrc_icmpv6_echo.c @@ -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