r23567: Fix bug 4721
authorVolker Lendecke <vlendec@samba.org>
Thu, 21 Jun 2007 14:30:40 +0000 (14:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:30 +0000 (12:23 -0500)
source/client/smbmount.c

index 805245b634b40ff80d8f8690c9a935264c50377c..4e1c94e1fa97bcaf430de3ab35a30d0f24951e7d 100644 (file)
@@ -152,7 +152,7 @@ static struct cli_state *do_connection(char *the_service)
 
        /* have to open a new connection */
        if (!(c=cli_initialise()) || (cli_set_port(c, smb_port) != smb_port) ||
-           !cli_connect(c, server_n, &ip)) {
+           !NT_STATUS_IS_OK(cli_connect(c, server_n, &ip))) {
                DEBUG(0,("%d: Connection to %s failed\n", sys_getpid(), server_n));
                if (c) {
                        cli_shutdown(c);