From f36ff0bac29a0e26db8ac0994d046611e3704dd0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 21 Dec 2008 05:35:39 +0100 Subject: Include errors.i verbatim in security.i, as it's the only file still using it. --- source4/auth/credentials/pycredentials.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/auth') 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) -- cgit