summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/librpc/rpc/pyrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 0f03fe851e..1662140bbc 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -70,7 +70,7 @@ static PyObject *py_iface_request(PyObject *self, PyObject *args, PyObject *kwar
return NULL;
}
- data_in.data = (uint8_t *)talloc_strndup(mem_ctx, in_data, in_length);
+ data_in.data = (uint8_t *)talloc_memdup(mem_ctx, in_data, in_length);
data_in.length = in_length;
ZERO_STRUCT(data_out);