diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-24 23:07:16 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-24 23:07:16 +0200 |
commit | 5863864f1d8df53b32f24cf41e726e3bddb528ce (patch) | |
tree | 5cb43cdf4f13a3fa2e3d1d3cfeaa614a432a2725 /source4 | |
parent | 2a6c4da9d10893f56915bfc19333ca776c6dab13 (diff) | |
download | samba-5863864f1d8df53b32f24cf41e726e3bddb528ce.tar.gz samba-5863864f1d8df53b32f24cf41e726e3bddb528ce.tar.bz2 samba-5863864f1d8df53b32f24cf41e726e3bddb528ce.zip |
Fix memory initialization in raw calls.
(This used to be commit 788b2dbfe4b1ef14ab30d487d845e493be46fbd1)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 2 |
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); |