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.
This commit is contained in:
Benjamin Valentin 2020-02-22 20:04:46 +01:00 committed by Benjamin Valentin
parent e9a40933f7
commit a65daf7a31

View File

@ -178,6 +178,7 @@ static int _configure(int argc, char **argv, _ping_data_t *data)
data->hostname = arg; data->hostname = arg;
#ifdef MODULE_SOCK_DNS #ifdef MODULE_SOCK_DNS
if (sock_dns_query(data->hostname, &data->host, AF_INET6) == 0) { if (sock_dns_query(data->hostname, &data->host, AF_INET6) == 0) {
res = 0;
continue; continue;
} }
#endif #endif