summaryrefslogtreecommitdiffstats
path: root/getethertype.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-09-30 14:56:31 +0200
committerFlorian Westphal <fw@strlen.de>2021-09-30 14:59:52 +0200
commit3af72f100ad783b0204ce519de26a639f920b558 (patch)
tree298e757731b0a4585117f4131a16625c07970280 /getethertype.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 <senthilb@qubercomm.com> Diagnosed-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'getethertype.c')
0 files changed, 0 insertions, 0 deletions