Skip to content

Commit

Permalink
Fixup after PR discussions
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksey Mikhaylov <aym@tempesta-tech.com>
  • Loading branch information
ttaym committed May 5, 2022
1 parent ac84d06 commit ed3f7d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -6267,7 +6267,8 @@ tfw_http_msg_process_generic(TfwConn *conn, TfwStream *stream,
if (TFW_CONN_TYPE(conn) & Conn_Clnt)
return tfw_http_req_process(conn, stream, skb);

/* That is paired request, it may be freed after resp processing */
/* That is paired request, it may be freed after resp processing,
* so we cannot move it iside `if` clause. */
req = ((TfwHttpMsg *)stream->msg)->pair;
if ((r = tfw_http_resp_process(conn, stream, skb))) {
TfwSrvConn *srv_conn = (TfwSrvConn *)conn;
Expand Down

0 comments on commit ed3f7d7

Please sign in to comment.