1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

replaced inet_aton() with inet_addr() to keep Solaris from complaining.

jerry
(This used to be commit 2b18c44843)
This commit is contained in:
Gerald Carter 2001-02-08 18:41:01 +00:00
parent b5eb73d9aa
commit 607ea0d6fa

View File

@ -1225,10 +1225,16 @@ static BOOL connect_to_domain_password_server(struct cli_state *pcli,
if (is_ipaddress(server)) {
struct in_addr to_ip;
/* we shouldn't have 255.255.255.255 forthe IP address of
a password server anyways */
if ((to_ip.s_addr=inet_addr(server)) == 0xFFFFFFFF) {
DEBUG (0,("connect_to_domain_password_server: inet_addr(%s) returned 0xFFFFFFFF!\n", server));
return False;
}
if (!inet_aton(server, &to_ip) ||
!name_status_find(0x20, to_ip, remote_machine)) {
DEBUG(1, ("connect_to_domain_password_server: Can't "
if (!name_status_find(0x20, to_ip, remote_machine)) {
DEBUG(0, ("connect_to_domain_password_server: Can't "
"resolve name for IP %s\n", server));
return False;
}