Skip to content

Commit

Permalink
[USM] fix http_allow_packet() (#17800)
Browse files Browse the repository at this point in the history
  • Loading branch information
nplanel authored Jun 26, 2023
1 parent 9dc6dd7 commit da444f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/ebpf/c/protocols/http/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static __always_inline bool http_allow_packet(http_transaction_t *http, struct _
return false;
}
bool empty_payload = skb_info->data_off == skb->len;
if (empty_payload || is_fully_classified(stack) || is_protocol_layer_known(stack, LAYER_ENCRYPTION)) {
if (empty_payload || is_protocol_layer_known(stack, LAYER_ENCRYPTION)) {
// if the payload data is empty or encrypted packet, we only
// process it if the packet represents a TCP termination
return skb_info->tcp_flags&(TCPHDR_FIN|TCPHDR_RST);
Expand Down

0 comments on commit da444f1

Please sign in to comment.