diff options
author | Volker Lendecke <vl@samba.org> | 2008-08-28 15:44:14 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-08-28 18:22:49 +0200 |
commit | f294f51bf0d136208fee1be343684ea890a499d0 (patch) | |
tree | 2bb9001616d90f178f260ade4f3cdb1405181408 /source3/libsmb/clientgen.c | |
parent | 228a12681bc7e6eb5bddb75b3b97a74c5eef1c3a (diff) | |
download | samba-f294f51bf0d136208fee1be343684ea890a499d0.tar.gz |
Remove cli_request_get()
req->private_data==NULL at this point is definitely a bug.
(This used to be commit ce3dc9f616cafc1289a94ac7cae0beca967d836e)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 239ba470a96..9d65fb4e944 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -661,7 +661,7 @@ static void cli_echo_recv_helper(struct async_req *req) return; } - cli_req = cli_request_get(req); + cli_req = talloc_get_type_abort(req->private_data, struct cli_request); if ((num_bytes != cli_req->data.echo.data.length) || (memcmp(cli_req->data.echo.data.data, bytes, @@ -713,7 +713,7 @@ struct async_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev, TALLOC_FREE(data_copy); return NULL; } - req = cli_request_get(result); + req = talloc_get_type_abort(result->private_data, struct cli_request); client_set_trans_sign_state_on(cli, req->mid); |