summaryrefslogtreecommitdiffstats
path: root/src/conntrack/copy.c
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2022-12-23 16:24:41 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2023-01-02 17:19:02 +0100
commit3ee08a91b35f050e4ccbaa3f641cf4e23d1a6d33 (patch)
treec19d02e11ff9c2df05c4bf68b5857ca6e064d91d /src/conntrack/copy.c
parent43d7b069f43e047b05f0e0ad5d5528afedc4ac1d (diff)
conntrack: simplify calculation of `struct sock_fprog` length
When assigning the length to the `struct sock_fprog` object, we calculate it by multiplying the number of `struct sock_filter` objects, `j`, by `sizeof(struct sock_filter)` and then dividing by `sizeof(bsf[0])`, which, since `bsf[0]` is a `struct sock_filter`, is equal to `sizeof(struct sock_filter)`. Remove the `sizeof` expressions and just assign `j`. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack/copy.c')
0 files changed, 0 insertions, 0 deletions