File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ tfw_tls_on_send_alert(void *conn, struct sk_buff **skb_head)
525525{
526526 TfwH2Ctx * ctx ;
527527
528+ BUG_ON (TFW_CONN_PROTO ((TfwConn * )conn ) != TFW_FSM_H2 );
528529 ctx = tfw_h2_context_safe ((TfwConn * )conn );
529530 if (!ctx )
530531 return 0 ;
@@ -620,7 +621,10 @@ tfw_tls_send(TlsCtx *tls, struct sg_table *sgt)
620621 io -> alert [0 ] == TTLS_ALERT_LEVEL_FATAL )) {
621622 TFW_CONN_TYPE (((TfwConn * )conn )) |= Conn_Stop ;
622623 flags |= tfw_tls_close_msg_flags (io );
623- TFW_SKB_CB (io -> skb_list )-> on_send = tfw_tls_on_send_alert ;
624+ if (TFW_CONN_PROTO ((TfwConn * )conn ) == TFW_FSM_H2 ) {
625+ TFW_SKB_CB (io -> skb_list )-> on_send =
626+ tfw_tls_on_send_alert ;
627+ }
624628 }
625629
626630 r = ss_send (conn -> cli_conn .sk , & io -> skb_list , flags );
You can’t perform that action at this time.
0 commit comments