Skip to content

Commit

Permalink
chore: remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Nov 26, 2024
1 parent e1d6231 commit 51cb0cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ void handle_packet(const struct nf_queue *queue, const struct nf_packet *pkt) {
ASSERT(pkt_buff != NULL);

int type;

if (use_conntrack) {
type = pkt->orig.ip_version;
} else {
Expand Down Expand Up @@ -306,9 +305,7 @@ void handle_packet(const struct nf_queue *queue, const struct nf_packet *pkt) {

end:
free(pkt->payload);
if (pkt_buff != NULL) {
pktb_free(pkt_buff);
}
pktb_free(pkt_buff);

try_print_statistics();
}
Expand Down

0 comments on commit 51cb0cf

Please sign in to comment.