summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-21 05:35:39 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-21 05:35:39 +0100
commitf36ff0bac29a0e26db8ac0994d046611e3704dd0 (patch)
tree707852feec289807d4997bc725ae0fd6959db2b5 /source4/auth
parent263c6670fcae62c67a5284a385c674b94ef2112c (diff)
downloadsamba-f36ff0bac29a0e26db8ac0994d046611e3704dd0.tar.gz
samba-f36ff0bac29a0e26db8ac0994d046611e3704dd0.tar.bz2
samba-f36ff0bac29a0e26db8ac0994d046611e3704dd0.zip
Include errors.i verbatim in security.i, as it's the only file still using it.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/pycredentials.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c
index 9922549e2d..5f3801cdf6 100644
--- a/source4/auth/credentials/pycredentials.c
+++ b/source4/auth/credentials/pycredentials.c
@@ -32,10 +32,8 @@ struct cli_credentials *cli_credentials_from_py_object(PyObject *py_obj)
return cli_credentials_init_anon(NULL);
}
- if (PyCredentials_Check(py_obj))
- return PyCredentials_AsCliCredentials(py_obj);
-
- return NULL;
+ /* FIXME: Check type? */
+ return PyCredentials_AsCliCredentials(py_obj);
}
static PyObject *PyString_FromStringOrNULL(const char *str)