From 5863864f1d8df53b32f24cf41e726e3bddb528ce Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 May 2008 23:07:16 +0200 Subject: Fix memory initialization in raw calls. (This used to be commit 788b2dbfe4b1ef14ab30d487d845e493be46fbd1) --- source4/librpc/rpc/pyrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/librpc/rpc') 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); -- cgit