Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
kovagsm committed Mar 7, 2025
1 parent a0ba852 commit 8b3199f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/security/ebpf/c/include/hooks/network/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,15 @@ int classifier_dns_response(struct __sk_buff *skb) {

int remaining_bytes = len - sizeof(struct dnshdr);

if (remaining_bytes <= 0 || pkt->offset <= 0 || remaining_bytes >= DNS_RECEIVE_MAX_LENGTH) {
if (remaining_bytes <= 0) {
return ACT_OK;
}

if(pkt->offset <= 0) {
return ACT_OK;
}

if (remaining_bytes >= DNS_RECEIVE_MAX_LENGTH) {
return ACT_OK;
}

Expand Down

0 comments on commit 8b3199f

Please sign in to comment.