diff options
Diffstat (limited to 'source3/python')
-rw-r--r-- | source3/python/py_smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index 5f913682d1..17b2a2d5aa 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); |