summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/python/py_winbind.c b/source/python/py_winbind.c
index 6050cfb2a7a..130f78d7e12 100644
--- a/source/python/py_winbind.c
+++ b/source/python/py_winbind.c
@@ -428,7 +428,7 @@ static PyObject *py_auth_crap(PyObject *self, PyObject *args, PyObject *kw)
ZERO_STRUCT(response);
if (push_utf8_fstring(request.data.auth_crap.user, username) == -1) {
- PyErr_SetString("unable to create utf8 string");
+ PyErr_SetString(winbind_error, "unable to create utf8 string");
return NULL;
}