diff options
-rw-r--r-- | source3/python/py_smb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index f92a9e258d..2f5d1161d8 100644 --- a/source3/python/py_smb.c +++ b/source3/python/py_smb.c @@ -99,7 +99,7 @@ static PyObject *py_smb_session_setup(PyObject *self, PyObject *args, static char *kwlist[] = { "creds", NULL }; PyObject *creds; char *username, *domain, *password, *errstr; - BOOL result; + NTSTATUS result; if (!PyArg_ParseTupleAndKeywords(args, kw, "|O", kwlist, &creds)) return NULL; @@ -118,7 +118,7 @@ static PyObject *py_smb_session_setup(PyObject *self, PyObject *args, return NULL; } - return Py_BuildValue("i", result); + return Py_BuildValue("i", NT_STATUS_IS_OK(result)); } static PyObject *py_smb_tconx(PyObject *self, PyObject *args, PyObject *kw) |