mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Replaced "-1" by INADDR_NONE.
This commit is contained in:
parent
1a62b0a598
commit
c5694db1ad
@ -843,7 +843,7 @@ do_ftp_auth (char *username, char *password)
|
||||
local_address.sin_port = htons (21);
|
||||
|
||||
/* Convert localhost to usable format */
|
||||
if ((inaddr = inet_addr ("127.0.0.1")) != -1)
|
||||
if ((inaddr = inet_addr ("127.0.0.1")) != INADDR_NONE)
|
||||
memcpy ((char *) &local_address.sin_addr, (char *) &inaddr,
|
||||
sizeof (inaddr));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user