diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-09 22:00:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-09 22:00:44 +0200 |
commit | 7ab9cd23988b48956fcfe171d5828d61285baf40 (patch) | |
tree | 10b3d522ff45b06ac9dd9f362ddc336c5b058ee0 /networking/ftpgetput.c | |
parent | 82c5eb8e4681ba345500e5c368fb54741bb0c450 (diff) | |
download | busybox-w32-7ab9cd23988b48956fcfe171d5828d61285baf40.tar.gz busybox-w32-7ab9cd23988b48956fcfe171d5828d61285baf40.tar.bz2 busybox-w32-7ab9cd23988b48956fcfe171d5828d61285baf40.zip |
libbb: make bb_lookup_port() abort on bad port names
Also, no need to preserve errno
function old new delta
.rodata 104247 104241 -6
bb_lookup_port 97 83 -14
nc_main 1039 1018 -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-41) Total: -41 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 30b3dabd1..4c92f34a1 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -290,8 +290,7 @@ static const char ftpgetput_longopts[] ALIGN1 = | |||
290 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 290 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
291 | int ftpgetput_main(int argc UNUSED_PARAM, char **argv) | 291 | int ftpgetput_main(int argc UNUSED_PARAM, char **argv) |
292 | { | 292 | { |
293 | const char *port = "ftp"; | 293 | const char *port = NULL; |
294 | /* socket to ftp server */ | ||
295 | 294 | ||
296 | #if ENABLE_FTPPUT && !ENABLE_FTPGET | 295 | #if ENABLE_FTPPUT && !ENABLE_FTPGET |
297 | # define ftp_action ftp_send | 296 | # define ftp_action ftp_send |