summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_auth.c4
-rw-r--r--source4/librpc/rpc/pyrpc.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c
index f119b426d9..cedcdd1bec 100644
--- a/source4/librpc/rpc/dcerpc_auth.c
+++ b/source4/librpc/rpc/dcerpc_auth.c
@@ -41,9 +41,9 @@ static NTSTATUS dcerpc_init_syntaxes(const struct ndr_interface_table *table,
syntax->if_version = table->syntax_id.if_version;
if (pipe_flags & DCERPC_NDR64) {
- *transfer_syntax = ndr64_transfer_syntax;
+ *transfer_syntax = ndr_transfer_syntax_ndr64;
} else {
- *transfer_syntax = ndr_transfer_syntax;
+ *transfer_syntax = ndr_transfer_syntax_ndr;
}
return NT_STATUS_OK;
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 23961e7a07..67462f18f3 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -262,10 +262,9 @@ static PyObject *py_iface_alter_context(PyObject *self, PyObject *args, PyObject
return NULL;
if (py_transfer_syntax == Py_None) {
- transfer_syntax = ndr_transfer_syntax;
+ transfer_syntax = ndr_transfer_syntax_ndr;
} else {
- if (!ndr_syntax_from_py_object(py_transfer_syntax,
- &transfer_syntax))
+ if (!ndr_syntax_from_py_object(py_transfer_syntax, &transfer_syntax))
return NULL;
}