static int dcerpc_pipe_handle_push_state_destructor(
struct dcerpc_pipe_handle_push_state *state)
{
- if (state->p) {
+ if (state->p != NULL) {
state->p->current_req = NULL;
}
status = state->ops->chunk_push_recv(subreq);
TALLOC_FREE(subreq);
+ state->p->current_req = NULL;
+ state->p = NULL;
if (tevent_req_nterror(req, status)) {
return;
}
static int dcerpc_pipe_handle_pull_state_destructor(
struct dcerpc_pipe_handle_pull_state *state)
{
- if (state->p) {
+ if (state->p != NULL) {
state->p->current_req = NULL;
}
status = state->ops->chunk_pull_recv(subreq);
TALLOC_FREE(subreq);
+ state->p->current_req = NULL;
+ state->p = NULL;
if (tevent_req_nterror(req, status)) {
return;
}