From 4b0199a5493ea2b88558cc40871e63c1dc8dbb56 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 12 Dec 2007 02:15:29 +0100 Subject: r26409: Pass smb ports along. (This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f) --- source4/torture/masktest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/torture/masktest.c') diff --git a/source4/torture/masktest.c b/source4/torture/masktest.c index 63ad6027a1..4603fd05e4 100644 --- a/source4/torture/masktest.c +++ b/source4/torture/masktest.c @@ -69,7 +69,7 @@ static char *reg_test(struct smbcli_state *cli, char *pattern, char *long_name, /***************************************************** return a connection to a server *******************************************************/ -static struct smbcli_state *connect_one(char *share) +static struct smbcli_state *connect_one(char *share, const char **ports) { struct smbcli_state *c; fstring server; @@ -85,6 +85,7 @@ static struct smbcli_state *connect_one(char *share) status = smbcli_full_connection(NULL, &c, server, + ports, share, NULL, credentials, NULL); @@ -363,7 +364,7 @@ static void usage(void) argc -= optind; argv += optind; - cli = connect_one(share); + cli = connect_one(share, lp_smb_ports(lp_ctx)); if (!cli) { DEBUG(0,("Failed to connect to %s\n", share)); exit(1); -- cgit