summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-21 09:54:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:34 -0500
commit0df8dcb7c9d1bd649442da10bda88bd42a10c0b8 (patch)
treee199bb7ffcc57ab66d9cf10b42ecd0b3cb464a92 /source4/librpc/rpc
parent93e83f4086384908107aea16d6df4819b4970f67 (diff)
downloadsamba-0df8dcb7c9d1bd649442da10bda88bd42a10c0b8.tar.gz
samba-0df8dcb7c9d1bd649442da10bda88bd42a10c0b8.tar.bz2
samba-0df8dcb7c9d1bd649442da10bda88bd42a10c0b8.zip
r11824: fixed a valgrind error in the dcerpc_smb code
(This used to be commit 128b5ea7b369df6e7433609a24128f8bf623c4fe)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_smb.c3
1 files changed, 2 insertions, 1 deletions
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;
}