replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
[samba.git] / source3 / client / smbmount.c
index 71c7e298106af245bdd966db9d769577fcf39685..a87eb789ef76d185d535787f712911c3c727af5b 100644 (file)
@@ -148,7 +148,7 @@ static struct cli_state *do_connection(char *service)
        if (have_ip) ip = dest_ip;
 
        /* have to open a new connection */
-       if (!(c=cli_initialise(NULL)) || (cli_set_port(c, smb_port) != port) ||
+       if (!(c=cli_initialise(NULL)) || (cli_set_port(c, smb_port) != smb_port) ||
            !cli_connect(c, server_n, &ip)) {
                DEBUG(0,("%d: Connection to %s failed\n", getpid(), server_n));
                if (c) {