From 607ea0d6fa00b5a9f1dea0542c039411e60f0db4 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 8 Feb 2001 18:41:01 +0000 Subject: replaced inet_aton() with inet_addr() to keep Solaris from complaining. jerry (This used to be commit 2b18c4484313e77d98c8a7524cf9f5cc2c924dc2) --- source3/smbd/password.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source3/smbd/password.c') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index cdf3e28b03..311a019506 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -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; } -- cgit