diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 05:35:39 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-21 05:35:39 +0100 |
commit | f36ff0bac29a0e26db8ac0994d046611e3704dd0 (patch) | |
tree | 707852feec289807d4997bc725ae0fd6959db2b5 /source4/auth | |
parent | 263c6670fcae62c67a5284a385c674b94ef2112c (diff) | |
download | samba-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.c | 6 |
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) |