Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Update evhtp.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultima1252 authored Jan 11, 2018
1 parent 0d9284f commit 4cb782d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions evhtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2373,14 +2373,14 @@ htp__connection_writecb_(struct bufferevent * bev, void * arg)
return;
}

/* run user-hook for on_write callback before further analysis */
htp__hook_connection_write_(conn);

/* connection is in a paused state, no further processing yet */
if ((conn->flags & EVHTP_CONN_FLAG_PAUSED))
{
return;
}

/* run user-hook for on_write callback before further analysis */
htp__hook_connection_write_(conn);

if (conn->flags & EVHTP_CONN_FLAG_WAITING)
{
Expand Down Expand Up @@ -3043,7 +3043,7 @@ evhtp_connection_pause(evhtp_connection_t * c)

HTP_FLAG_ON(c, EVHTP_CONN_FLAG_PAUSED);

bufferevent_disable(c->bev, EV_READ | EV_WRITE);
bufferevent_disable(c->bev, EV_READ);

return;
}
Expand Down

0 comments on commit 4cb782d

Please sign in to comment.