diff options
author | Florian Westphal <fw@strlen.de> | 2021-09-30 14:56:31 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-09-30 14:59:52 +0200 |
commit | 3af72f100ad783b0204ce519de26a639f920b558 (patch) | |
tree | 298e757731b0a4585117f4131a16625c07970280 /ebtables-standalone.c | |
parent | 52f88f8c22aae3b33f08865f2de659f8a9c4fa5c (diff) |
libebtc: fix malloc usage
Rule insertion may fail on systems where libc doesn't provided zeroed
memory via malloc (which is legal).
IOW, this was never guaranteed to work correctly.
Add a xzalloc wrapper to do error checking and zeroing and then
use it in libebtc.
Reported-and-tested-by: Senthil Kumar Balasubramanian <senthilb@qubercomm.com>
Diagnosed-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'ebtables-standalone.c')
0 files changed, 0 insertions, 0 deletions