summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-02-08 18:41:01 +0000
committerGerald Carter <jerry@samba.org>2001-02-08 18:41:01 +0000
commit607ea0d6fa00b5a9f1dea0542c039411e60f0db4 (patch)
treeecd904e3bdcad5df961e1b46b6a025a1ea03ea80 /source3
parentb5eb73d9aa3e25aee0ef800961dc8345229fc779 (diff)
downloadsamba-607ea0d6fa00b5a9f1dea0542c039411e60f0db4.tar.gz
samba-607ea0d6fa00b5a9f1dea0542c039411e60f0db4.tar.bz2
samba-607ea0d6fa00b5a9f1dea0542c039411e60f0db4.zip
replaced inet_aton() with inet_addr() to keep Solaris from complaining.
jerry (This used to be commit 2b18c4484313e77d98c8a7524cf9f5cc2c924dc2)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c12
1 files changed, 9 insertions, 3 deletions
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;
}