diff options
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 8724739b5..cc7a2a754 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -356,7 +356,8 @@ int ftpgetput_main(int argc, char **argv) | |||
356 | * and we want to connect to only one IP... */ | 356 | * and we want to connect to only one IP... */ |
357 | server->s_in = &s_in; | 357 | server->s_in = &s_in; |
358 | server->host = argv[optind]; | 358 | server->host = argv[optind]; |
359 | bb_lookup_host(&s_in, server->host, NULL); | 359 | bb_lookup_host(&s_in, server->host); |
360 | s_in.sin_port = bb_lookup_port(server->port, 21); | ||
360 | if (verbose_flag) { | 361 | if (verbose_flag) { |
361 | fprintf(stdout, "Connecting to %s[%s]:%s\n", | 362 | fprintf(stdout, "Connecting to %s[%s]:%s\n", |
362 | server->host, inet_ntoa(s_in.sin_addr), server->port); | 363 | server->host, inet_ntoa(s_in.sin_addr), server->port); |