mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s4-librpc: Fix private context for dcerpc_connect_timeout_handler
This was incorrect in 02a356ea775a3ba589cb50af3c861ab86aaffa0b. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jul 29 14:54:33 CEST 2012 on sn-devel-104
This commit is contained in:
parent
1547d5fe00
commit
fc6d7bfbe7
@ -716,9 +716,9 @@ static void continue_pipe_auth(struct composite_context *ctx)
|
||||
static void dcerpc_connect_timeout_handler(struct tevent_context *ev, struct tevent_timer *te,
|
||||
struct timeval t, void *private_data)
|
||||
{
|
||||
struct composite_context *c = talloc_get_type(private_data,
|
||||
struct composite_context *c = talloc_get_type_abort(private_data,
|
||||
struct composite_context);
|
||||
struct pipe_connect_state *s = talloc_get_type(c->private_data, struct pipe_connect_state);
|
||||
struct pipe_connect_state *s = talloc_get_type_abort(c->private_data, struct pipe_connect_state);
|
||||
if (!s->pipe->inhibit_timeout_processing) {
|
||||
composite_error(c, NT_STATUS_IO_TIMEOUT);
|
||||
} else {
|
||||
@ -766,9 +766,9 @@ _PUBLIC_ struct composite_context* dcerpc_pipe_connect_b_send(TALLOC_CTX *parent
|
||||
s->pipe->timed_out = false;
|
||||
s->pipe->inhibit_timeout_processing = false;
|
||||
|
||||
tevent_add_timer(c->event_ctx, s,
|
||||
tevent_add_timer(c->event_ctx, c,
|
||||
timeval_current_ofs(DCERPC_REQUEST_TIMEOUT, 0),
|
||||
dcerpc_connect_timeout_handler, s);
|
||||
dcerpc_connect_timeout_handler, c);
|
||||
|
||||
switch (s->binding->transport) {
|
||||
case NCA_UNKNOWN: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user