Skip to content
Commit 4be1dbb7 authored by Kees Cook's avatar Kees Cook Committed by Pablo Neira Ayuso
Browse files

netfilter: conntrack: Use memset_startat() to zero struct nf_conn



In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.

Use memset_startat() to avoid confusing memset() about writing beyond
the target struct member.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fc5e0352
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment