]> git.ipfire.org Git - thirdparty/iptables.git/commit
libiptc: Simplify alloc_handle() function signature
authorPhil Sutter <phil@nwl.cc>
Wed, 19 Sep 2018 13:16:53 +0000 (15:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 24 Sep 2018 09:24:06 +0000 (11:24 +0200)
commit22ef371abeeec789bb6a701352dcb961556595c2
tree32a3d1006b63dfabe55adba87f247d71f49091c7
parent6b7145fa2112e257073cc44346e9891fa23ce9c2
libiptc: Simplify alloc_handle() function signature

This change originated from covscan complaining about the strcpy() call
with an unknown size source buffer. But in fact, the size is known (and
equal to the destination size), so pass a pointer to STRUCT_GETINFO to
alloc_handle() instead of it's fields separately. Hopefully this will
silence covscan.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
libiptc/libiptc.c