1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

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
This commit is contained in:
Andrew Bartlett 2013-09-18 14:29:26 -07:00
parent aa07b5caf9
commit b2b948a1d0

View File

@ -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;