summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-09-18 14:29:26 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-09-19 23:19:15 +0200
commitb2b948a1d01982613dc53ac926842f1d144b6841 (patch)
treed27e102869f2c6bd35702372075b483cf102d835 /source4/lib
parentaa07b5caf9ac13fc517c4c9d21f16ebff5415544 (diff)
downloadsamba-b2b948a1d01982613dc53ac926842f1d144b6841.tar.gz
samba-b2b948a1d01982613dc53ac926842f1d144b6841.tar.bz2
samba-b2b948a1d01982613dc53ac926842f1d144b6841.zip
lib/messaging: Check the server_id type correctly
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 19 23:19:16 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/messaging/pymessaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c
index d035fb024a..62370ae756 100644
--- a/source4/lib/messaging/pymessaging.c
+++ b/source4/lib/messaging/pymessaging.c
@@ -42,7 +42,7 @@ extern PyTypeObject imessaging_Type;
static bool server_id_from_py(PyObject *object, struct server_id *server_id)
{
if (!PyTuple_Check(object)) {
- if (!py_check_dcerpc_type(object, "server_id", "server_id")) {
+ if (!py_check_dcerpc_type(object, "samba.dcerpc.server_id", "server_id")) {
PyErr_SetString(PyExc_ValueError, "Expected tuple or server_id");
return false;