summaryrefslogtreecommitdiffstats
path: root/src/mnl.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-01-10 22:36:58 +0100
committerPhil Sutter <phil@nwl.cc>2023-01-13 17:11:18 +0100
commit927d5674e7bf656428f97c54c9171006e8c3c75e (patch)
tree0d5435ea9cefd280f5362029aeb883fbc7b6568c /src/mnl.c
parentd4d47e5bdf943be494aeb5d5a29b8f5212acbddf (diff)
netlink: Fix for potential NULL-pointer deref
If memory allocation fails, calloc() returns NULL which was not checked for. The code seems to expect zero array size though, so simply replacing this call by one of the x*calloc() ones won't work. So guard the call also by a check for 'len'. Fixes: db0697ce7f602 ("src: support for flowtable listing") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/mnl.c')
0 files changed, 0 insertions, 0 deletions