summaryrefslogtreecommitdiffhomepage
path: root/networking/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 466851c1b..bb75c88ec 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -390,15 +390,10 @@ int tftp_main(int argc, char **argv)
s = xstrdup(serverstr);
s[cp - serverstr] = '\0';
- if ((host = gethostbyname(s))) {
- bad = 0;
- }
+ host = xgethostbyname(s);
free(s);
}
- if (bad) {
- error_msg_and_die("bad \"server:file\" combination");
- }
if (BB_TFTP_DEBUG) {
printf("using server \"%s\", serverfile \"%s\","