summaryrefslogtreecommitdiffstats
path: root/examples/nft-table-get.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-12-02 23:08:07 +0100
committerPhil Sutter <phil@nwl.cc>2019-12-03 18:34:39 +0100
commit835d645f4052551c5c1829c37a07c882f2260f65 (patch)
tree106ea948c1f34238d1786605ed14b6071ecb2b6c /examples/nft-table-get.c
parent32a8c5f52355ef69bf74c28e27345b2e03d948e7 (diff)
flowtable: Correctly check realloc() call
If realloc() fails, it returns NULL but the original pointer is untouchted and therefore still has to be freed. Unconditionally overwriting the old pointer is therefore a bad idea, use a temporary variable instead. Fixes: 7f99639dd9217 ("flowtable: device array dynamic allocation") Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-table-get.c')
0 files changed, 0 insertions, 0 deletions