Skip to content

Commit 7b509b2

Browse files
Fix warning in dmesg in case of error in frame processing
It is necessary to reinit HTTP/2 framing context in case of error in frame processing. Closes #1781 #1817
1 parent cfb86bb commit 7b509b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fw/http_frame.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,8 @@ tfw_h2_frame_process(TfwConn *c, struct sk_buff *skb)
19031903
}
19041904

19051905
out:
1906+
if (r && r != T_POSTPONE)
1907+
tfw_h2_context_reinit(h2, false);
19061908
ss_skb_queue_purge(&h2->skb_head);
19071909
return r;
19081910
}

0 commit comments

Comments
 (0)