diff options
Diffstat (limited to 'net/sntp.c')
-rw-r--r-- | net/sntp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sntp.c b/net/sntp.c index df22caef24..3be166a372 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -110,6 +110,9 @@ int do_sntp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (toff == NULL) NetTimeOffset = 0; else NetTimeOffset = simple_strtol (toff, NULL, 10); + if (NetLoopInit(SNTP) < 0) + return 1; + if (NetLoop(SNTP) < 0) { printf("SNTP failed: host %s not responding\n", argv[1]); return 1; |