summaryrefslogtreecommitdiff
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
commit505f1d1e0415edbe68c92b396d81aca96ccfbca1 (patch)
tree059295a9b3f29536a8786520b196173730301a08
parent1e02ed76ebf9841e4b7a70e209cfdb192c28a8b3 (diff)
downloadsamba-505f1d1e0415edbe68c92b396d81aca96ccfbca1.tar.gz
samba-505f1d1e0415edbe68c92b396d81aca96ccfbca1.tar.bz2
samba-505f1d1e0415edbe68c92b396d81aca96ccfbca1.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 (This used to be commit 49d07d0cf9f8735f53d40dd094a0b17b4573e2b2)
-rw-r--r--source3/python/py_smb.c4
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)