r24601: Fix if statements where we still expected cli_connect() to return BOOL.
authorLars Müller <lmuelle@samba.org>
Tue, 21 Aug 2007 14:42:36 +0000 (14:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:09 +0000 (12:30 -0500)
(This used to be commit 12cb06d6ad73c37b9ee4bdf31f88dd3ce8cc3935)

source3/client/smbctool.c
source3/python/py_smb.c

index 79542fbdab0a4aeeada561094b6566e3b546ff7e..28122d843033a4cbf1b282dae855e47a1989957d 100644 (file)
@@ -3494,7 +3494,7 @@ static int do_message_op(void)
        msg_port = port ? port : 139;
 
        if (!(cli=cli_initialise()) || (cli_set_port(cli, msg_port) != msg_port) ||
-               !cli_connect(cli, server_name, &ip)) {
+               !NT_STATUS_IS_OK(cli_connect(cli, server_name, &ip))) {
                d_printf("Connection to %s failed\n", desthost);
                return 1;
        }
index 5f913682d119bfb700eb176d0a41ebd5f1e86b17..17b2a2d5aa13782b35f07e517089f7dea0a5f798 100644 (file)
@@ -47,7 +47,7 @@ static PyObject *py_smb_connect(PyObject *self, PyObject *args, PyObject *kw)
 
        ZERO_STRUCT(ip);
 
-       if (!cli_connect(cli, server, &ip))
+       if (!NT_STATUS_IS_OK(cli_connect(cli, server, &ip)))
                return NULL;
 
        return new_cli_state_object(cli);