From ea26f470c01713d7f90513d3671e52bf2a289d00 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 25 Feb 2011 14:10:24 +0100 Subject: 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 --- input/flow/ulogd_inpflow_NFCT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input/flow') 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 -- cgit v1.2.3