* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
	in case hostname was not specified.
This commit is contained in:
Sebastian Huber
2010-10-19 09:16:20 +00:00
parent 71a6a16fd0
commit 6366c2e2a6
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
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

View File

@@ -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);