summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-07-04 04:04:17 +0000
committerTim Potter <tpot@samba.org>2001-07-04 04:04:17 +0000
commitd972dc06a189fc433c822d1e5eee650a02a79550 (patch)
treeabcf0524cd95c13d1fa641e0b104bead5fafecfd /source3
parent17a0a89c797c02b34a7584c67643a8ceb2fd6660 (diff)
downloadsamba-d972dc06a189fc433c822d1e5eee650a02a79550.tar.gz
samba-d972dc06a189fc433c822d1e5eee650a02a79550.tar.bz2
samba-d972dc06a189fc433c822d1e5eee650a02a79550.zip
Removed bogus server_n local variable in connect_one() function.
(This used to be commit 69d90a8af167d53ebdb6d7aeef41b28b672288d1)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcacls.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index f07bdb0dd8..51ae05b52a 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -692,7 +692,6 @@ struct cli_state *connect_one(char *share)
{
struct cli_state *c;
struct nmb_name called, calling;
- char *server_n;
struct in_addr ip;
extern struct in_addr ipzero;
extern pstring global_myname;
@@ -703,8 +702,6 @@ struct cli_state *connect_one(char *share)
*share = 0;
share++;
- server_n = server;
-
ip = ipzero;
make_nmb_name(&calling, global_myname, 0x0);
@@ -715,8 +712,8 @@ struct cli_state *connect_one(char *share)
/* have to open a new connection */
if (!(c=cli_initialise(NULL)) || (cli_set_port(c, 139) == 0) ||
- !cli_connect(c, server_n, &ip)) {
- DEBUG(0,("Connection to %s failed\n", server_n));
+ !cli_connect(c, server, &ip)) {
+ DEBUG(0,("Connection to %s failed\n", server));
cli_shutdown(c);
safe_free(c);
return NULL;