summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/client.c')
-rw-r--r--source/client/client.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 745aec73970..fe339094c8e 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -42,6 +42,7 @@ static pstring workgroup;
static char *cmdstr;
static BOOL got_pass;
static int io_bufsize = 64512;
+extern struct in_addr ipzero;
static int name_type = 0x20;
static int max_protocol = PROTOCOL_NT1;
@@ -192,7 +193,7 @@ static void send_message(void)
* DOS before sending.
*/
- unix_to_dos(msg);
+ unix_to_dos(msg, True);
if (!cli_message_text(cli, msg, l, grp_id)) {
printf("SMBsendtxt failed (%s)\n",cli_errstr(cli));
@@ -2146,6 +2147,7 @@ struct cli_state *do_connect(char *server, char *share)
struct nmb_name called, calling;
char *server_n;
struct in_addr ip;
+ extern struct in_addr ipzero;
fstring servicename;
char *sharename;
@@ -2162,13 +2164,13 @@ struct cli_state *do_connect(char *server, char *share)
server_n = server;
- zero_ip(&ip);
+ ip = ipzero;
make_nmb_name(&calling, global_myname, 0x0);
make_nmb_name(&called , server, name_type);
again:
- zero_ip(&ip);
+ ip = ipzero;
if (have_ip) ip = dest_ip;
/* have to open a new connection */
@@ -2417,12 +2419,12 @@ static int do_message_op(void)
struct in_addr ip;
struct nmb_name called, calling;
- zero_ip(&ip);
+ ip = ipzero;
make_nmb_name(&calling, global_myname, 0x0);
make_nmb_name(&called , desthost, name_type);
- zero_ip(&ip);
+ ip = ipzero;
if (have_ip) ip = dest_ip;
if (!(cli=cli_initialise(NULL)) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, desthost, &ip)) {
@@ -2659,7 +2661,7 @@ static int do_message_op(void)
case 'I':
{
dest_ip = *interpret_addr2(optarg);
- if (is_zero_ip(dest_ip))
+ if (zero_ip(dest_ip))
exit(1);
have_ip = True;
}