From 0df8dcb7c9d1bd649442da10bda88bd42a10c0b8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Nov 2005 09:54:02 +0000 Subject: r11824: fixed a valgrind error in the dcerpc_smb code (This used to be commit 128b5ea7b369df6e7433609a24128f8bf623c4fe) --- source4/librpc/rpc/dcerpc_smb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c index 5d10be36f6..8a3e88e9dc 100644 --- a/source4/librpc/rpc/dcerpc_smb.c +++ b/source4/librpc/rpc/dcerpc_smb.c @@ -90,10 +90,11 @@ static void smb_read_callback(struct smbcli_request *req) if (frag_length <= state->received) { DATA_BLOB data = state->data; + struct dcerpc_connection *c = state->c; data.length = state->received; talloc_steal(state->c, data.data); talloc_free(state); - state->c->transport.recv_data(state->c, &data, NT_STATUS_OK); + c->transport.recv_data(c, &data, NT_STATUS_OK); return; } -- cgit