From 486f734fd8794fb424d44b21695973cbd01a348b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 20 Feb 2010 15:25:34 +0100 Subject: s3: Explicitly handle inbuf in cli_message_start_done --- source3/libsmb/climessage.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/climessage.c') diff --git a/source3/libsmb/climessage.c b/source3/libsmb/climessage.c index 170447b253..bdf2977af9 100644 --- a/source3/libsmb/climessage.c +++ b/source3/libsmb/climessage.c @@ -91,8 +91,11 @@ static void cli_message_start_done(struct tevent_req *subreq) NTSTATUS status; uint8_t wct; uint16_t *vwv; + uint8_t *inbuf; - status = cli_smb_recv(subreq, NULL, NULL, 0, &wct, &vwv, NULL, NULL); + status = cli_smb_recv(subreq, state, &inbuf, 0, &wct, &vwv, + NULL, NULL); + TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(subreq); tevent_req_nterror(req, status); @@ -103,7 +106,6 @@ static void cli_message_start_done(struct tevent_req *subreq) } else { state->grp = 0; } - TALLOC_FREE(subreq); tevent_req_done(req); } -- cgit