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:
parent
e9a40933f7
commit
a65daf7a31
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user