summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-09-04 01:15:01 +0000
committerGerald Carter <jerry@samba.org>2002-09-04 01:15:01 +0000
commit2d8e2cfc7915e0027f8359b50042312a6827d8a9 (patch)
tree88b5eb830a00ce933cb6afdebd7d616846738132 /source3/rpcclient
parent59f40f31edfd50d76ef72295dd92327614e4e2ac (diff)
downloadsamba-2d8e2cfc7915e0027f8359b50042312a6827d8a9.tar.gz
samba-2d8e2cfc7915e0027f8359b50042312a6827d8a9.tar.bz2
samba-2d8e2cfc7915e0027f8359b50042312a6827d8a9.zip
remove inet_aton()
(This used to be commit a7616b2b942eaf3be4e16fb9d38cdb42d8b95a94)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 5f15c57577..5f1f7a9f9a 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -667,7 +667,7 @@ static NTSTATUS process_cmd(struct cli_state *cli, char *cmd)
break;
}
case 'I':
- if (!inet_aton(opt_ipaddr, &server_ip)) {
+ if ( (server_ip.s_addr=inet_addr(opt_ipaddr)) == INADDR_NONE ) {
fprintf(stderr, "%s not a valid IP address\n",
opt_ipaddr);
return 1;