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 {
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: {