From e88a6d34383b37d9b6d019004a55e7cc4fc4f075 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20M=C3=BCller?= Date: Tue, 21 Aug 2007 14:42:36 +0000 Subject: [PATCH] r24601: Fix if statements where we still expected cli_connect() to return BOOL. (This used to be commit 12cb06d6ad73c37b9ee4bdf31f88dd3ce8cc3935) --- source3/client/smbctool.c | 2 +- source3/python/py_smb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/client/smbctool.c b/source3/client/smbctool.c index 79542fbdab0..28122d84303 100644 --- a/source3/client/smbctool.c +++ b/source3/client/smbctool.c @@ -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; } diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index 5f913682d11..17b2a2d5aa1 100644 --- a/source3/python/py_smb.c +++ b/source3/python/py_smb.c @@ -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); -- 2.11.4.GIT