summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-18 19:43:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:52:01 -0500
commit49d07d0cf9f8735f53d40dd094a0b17b4573e2b2 (patch)
treed8113adb126e69da65083fe0595ab49742230180 /source/python
parent23d6656427d0f7184f5365f6cb9356b15186b30e (diff)
downloadsamba-49d07d0cf9f8735f53d40dd094a0b17b4573e2b2.tar.gz
samba-49d07d0cf9f8735f53d40dd094a0b17b4573e2b2.tar.xz
samba-49d07d0cf9f8735f53d40dd094a0b17b4573e2b2.zip
r18622: Fix at least the python bindings *build*, I'm sure there is much more to
do so that they actually work again. Guenther
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/python/py_smb.c b/source/python/py_smb.c
index f92a9e258dc..2f5d1161d87 100644
--- a/source/python/py_smb.c
+++ b/source/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)