]> git.ipfire.org Git - thirdparty/libnftnl.git/commit
flowtable: Fix for reading garbage
authorPhil Sutter <phil@nwl.cc>
Thu, 20 Dec 2018 20:03:31 +0000 (21:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Dec 2018 11:05:16 +0000 (12:05 +0100)
commitf8eed54150fd49ed814e63a5db39eda67d4b3938
tree82e6673bfd2e4823d136ea643ed51868fe1d92dd
parent8ef66870832d56881703a7798ecdff9e19917b15
flowtable: Fix for reading garbage

nftnl_flowtable_get_data() doesn't assign to passt data_len pointer
destination in all cases, so initialize it to 0.

Fixes: eb58f53372e74 ("src: add flowtable support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/flowtable.c