diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-25 14:10:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-25 14:10:24 +0100 |
commit | ea26f470c01713d7f90513d3671e52bf2a289d00 (patch) | |
tree | e3f4664d9aeec7f70791eb3f9c2a34ce5e3927c9 /input | |
parent | 869f1640e807f1fda4c410fe517d1aa8d74af6cf (diff) |
NFCT: use nfct_copy() instead of deprecated nfct_sizeof() function
nfct_sizeof() allows memcpy() of ct objects, which violates the
library design (that aims to hide binary layout).
We use nfct_copy() with the override flag instead as added by
libnetfilter_conntrack 0.9.1.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'input')
-rw-r--r-- | input/flow/ulogd_inpflow_NFCT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/flow/ulogd_inpflow_NFCT.c b/input/flow/ulogd_inpflow_NFCT.c index af4fec6..31535a9 100644 --- a/input/flow/ulogd_inpflow_NFCT.c +++ b/input/flow/ulogd_inpflow_NFCT.c @@ -577,7 +577,7 @@ do_propagate_ct(struct ulogd_pluginstance *upi, * Thus, we only copy the object once, then it is used * by the several output plugin instance that reference * it by means of a pointer. */ - memcpy(cpi->ct, ct, nfct_sizeof(ct)); + nfct_copy(cpi->ct, ct, NFCT_CP_OVERRIDE); /* since we support the re-use of one instance in * several different stacks, we duplicate the message |