summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-13 09:07:21 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-13 16:01:40 +0200
commita68eb378a584c638d81f2e1ec645a318e37f103f (patch)
tree29b09f0d5565e81f59a2c01d2f0f00f24d4ff2ed /source4/librpc/rpc
parent59b1078ec5a074bb812546329a12ea3941ab11ef (diff)
downloadsamba-a68eb378a584c638d81f2e1ec645a318e37f103f.tar.gz
samba-a68eb378a584c638d81f2e1ec645a318e37f103f.tar.bz2
samba-a68eb378a584c638d81f2e1ec645a318e37f103f.zip
s4:librpc/rpc: the python bindings should use !NT_STATUS_IS_OK instead of NT_STATUS_IS_ERR
Everything but NT_STATUS_OK is an error here. metze
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 04565f2495..718c749ef8 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -60,7 +60,7 @@ static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface,
}
status = md->call(iface->binding_handle, mem_ctx, r);
- if (NT_STATUS_IS_ERR(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetDCERPCStatus(iface->pipe, status);
talloc_free(mem_ctx);
return NULL;
@@ -248,7 +248,7 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar
status = dcerpc_request(iface->pipe, object?&object_guid:NULL,
opnum, mem_ctx, &data_in, &data_out);
- if (NT_STATUS_IS_ERR(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetDCERPCStatus(iface->pipe, status);
talloc_free(mem_ctx);
return NULL;
@@ -288,7 +288,7 @@ static PyObject *py_iface_alter_context(PyObject *self, PyObject *args, PyObject
status = dcerpc_alter_context(iface->pipe, iface->pipe, &abstract_syntax,
&transfer_syntax);
- if (NT_STATUS_IS_ERR(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetDCERPCStatus(iface->pipe, status);
return NULL;
}
@@ -449,7 +449,7 @@ static PyObject *dcerpc_interface_new(PyTypeObject *self, PyObject *args, PyObje
table, credentials, event_ctx, lp_ctx);
}
- if (NT_STATUS_IS_ERR(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
PyErr_SetDCERPCStatus(ret->pipe, status);
talloc_free(mem_ctx);
return NULL;