From a65daf7a313d37a3ae34e1658be25771f3d13308 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sat, 22 Feb 2020 20:04:46 +0100 Subject: [PATCH] shell/gnrc_icmpv6_echo: set success state if DNS query succeeded We need to set `res` to 0 to signal success, otherwise we end up in the print usage case. --- sys/shell/commands/sc_gnrc_icmpv6_echo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/shell/commands/sc_gnrc_icmpv6_echo.c b/sys/shell/commands/sc_gnrc_icmpv6_echo.c index 7241f2635c..0c9e1c349f 100644 --- a/sys/shell/commands/sc_gnrc_icmpv6_echo.c +++ b/sys/shell/commands/sc_gnrc_icmpv6_echo.c @@ -178,6 +178,7 @@ static int _configure(int argc, char **argv, _ping_data_t *data) data->hostname = arg; #ifdef MODULE_SOCK_DNS if (sock_dns_query(data->hostname, &data->host, AF_INET6) == 0) { + res = 0; continue; } #endif