r26409: Pass smb ports along.
[jelmer/samba4-debian.git] / source / torture / unix / whoami.c
index 422e2abcbf4900efec0be59c1745c526147721b3..412a256da7c46e48355bb4477062674c02837751 100644 (file)
@@ -75,8 +75,9 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx,
        const char *host = torture_setting_string(tctx, "host", NULL);
        const char *share = torture_setting_string(tctx, "share", NULL);
 
-       status = smbcli_full_connection(tctx, &cli,
-                                       host, share, NULL,
+       status = smbcli_full_connection(tctx, &cli, host, 
+                                       lp_smb_ports(tctx->lp_ctx),
+                                       share, NULL,
                                        creds, NULL);
 
        if (!NT_STATUS_IS_OK(status)) {