diff options
Diffstat (limited to 'source/utils/locktest2.c')
-rw-r--r-- | source/utils/locktest2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/utils/locktest2.c b/source/utils/locktest2.c index ac16055c0f1..91083bc3ec4 100644 --- a/source/utils/locktest2.c +++ b/source/utils/locktest2.c @@ -157,6 +157,7 @@ struct cli_state *connect_one(char *share) char *server_n; fstring server; struct in_addr ip; + extern struct in_addr ipzero; fstring myname; static int count; @@ -168,7 +169,7 @@ struct cli_state *connect_one(char *share) server_n = server; - zero_ip(&ip); + ip = ipzero; slprintf(myname,sizeof(myname), "lock-%u-%u", getpid(), count++); @@ -176,7 +177,7 @@ struct cli_state *connect_one(char *share) make_nmb_name(&called , server, 0x20); again: - zero_ip(&ip); + ip = ipzero; /* have to open a new connection */ if (!(c=cli_initialise(NULL)) || (cli_set_port(c, 139) == 0) || |