summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-10-19 09:16:20 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-10-19 09:16:20 +0000
commit6366c2e2a6b6c3fa6e28aeac513bcc0c1afb19bb (patch)
tree3f4eb5d0fc37099be896a72da52d97a317bd6756 /cpukit
parent2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-6366c2e2a6b6c3fa6e28aeac513bcc0c1afb19bb.tar.bz2
2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address in case hostname was not specified.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 57dfc69b9f..cc780451a8 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,10 @@
2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
+ * libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
+ in case hostname was not specified.
+
+2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
* libnetworking/lib/ftpfs.c: Fixed a special case with no username and
password.
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c
index 1b633aa94d..00467e5e9b 100644
--- a/cpukit/libnetworking/lib/ftpfs.c
+++ b/cpukit/libnetworking/lib/ftpfs.c
@@ -604,10 +604,7 @@ static int rtems_ftpfs_open_ctrl_connection(
}
/* Set up the server address from the hostname */
- if (hostname == NULL || strlen(hostname) == 0) {
- /* Default to BOOTP server address */
- address = rtems_bsdnet_bootp_server_address;
- } else if (inet_aton(hostname, &address) == 0) {
+ if (inet_aton(hostname, &address) == 0) {
/* Try to get the address by name */
struct hostent *he = gethostbyname(hostname);