Skip to content

Commit bffcfe0

Browse files
authored
Merge pull request #160 from tmobile/tmo-CFSPDK-1058-Fix-ping-with-count-zero
Fixed crash on ping count zero
2 parents 65f2077 + 165ad1c commit bffcfe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/tmo_shell/src/tmo_ping.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ int cmd_ping(const struct shell *shell, size_t argc, char **argv)
8686
if (ping_cnt <= 0) {
8787
shell_error(shell, "Invalid ping count %d", ping_cnt);
8888
print_usage(shell);
89+
return EINVAL;
8990
}
9091
if (!net_ipaddr_parse(host, strlen(host), &dst))
9192
{

0 commit comments

Comments
 (0)