path: root/ebtables-standalone.c
diff options
authorFlorian Westphal <>2021-09-30 14:56:31 +0200
committerFlorian Westphal <>2021-09-30 14:59:52 +0200
commit3af72f100ad783b0204ce519de26a639f920b558 (patch)
tree298e757731b0a4585117f4131a16625c07970280 /ebtables-standalone.c
parent52f88f8c22aae3b33f08865f2de659f8a9c4fa5c (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 <> Diagnosed-by: Phil Sutter <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'ebtables-standalone.c')
0 files changed, 0 insertions, 0 deletions