commit | c55b8d41c15640fa1637f919b3f6eca6e781047a | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed May 16 15:40:51 2001 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed May 16 15:40:51 2001 +0000 |
tree | 03c1fca61c1b577b7c527d2b8482c5b7f6972bcd | |
parent | 59df6f73988b103f0dcfffeaec10642527336c5e [diff] [blame] |
Add xgethostbyname and herror_msg* functions.
diff --git a/networking/tftp.c b/networking/tftp.c index 466851c..bb75c88 100644 --- a/networking/tftp.c +++ b/networking/tftp.c
@@ -390,15 +390,10 @@ 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\","