diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-19 13:43:53 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-19 16:34:14 +1000 |
commit | e6cbbd9640e0e79653820e6cd5ea7b30c2e0f6bd (patch) | |
tree | ca2f289c30467ae3148bec40a8014bcc495166bd /source4/auth/credentials | |
parent | 93f4f7a0375b95540d7f701c295b88ed9c6322d8 (diff) | |
download | samba-e6cbbd9640e0e79653820e6cd5ea7b30c2e0f6bd.tar.gz samba-e6cbbd9640e0e79653820e6cd5ea7b30c2e0f6bd.tar.bz2 samba-e6cbbd9640e0e79653820e6cd5ea7b30c2e0f6bd.zip |
s4-python: PyErr_SetString() will crash on NULL strings
use nt_errstr() when no error available
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r-- | source4/auth/credentials/pycredentials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c index c5cca4fb32..361e4c9a1f 100644 --- a/source4/auth/credentials/pycredentials.c +++ b/source4/auth/credentials/pycredentials.c @@ -283,7 +283,7 @@ static PyObject *py_creds_get_named_ccache(py_talloc_Object *self, PyObject *arg return PyCredentialCacheContainer_from_ccache_container(ccc); } - PyErr_SetString(PyExc_RuntimeError, error_string); + PyErr_SetString(PyExc_RuntimeError, error_string?error_string:"NULL"); talloc_free(event_ctx); return NULL; |