summaryrefslogtreecommitdiffstats
path: root/examples/nft-table-upd.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-12-02 23:12:34 +0100
committerPhil Sutter <phil@nwl.cc>2019-12-03 18:34:41 +0100
commitd95a703746d5394d56a9f464e343594e4882da0d (patch)
tree5fbbe641c1d7b2e00edbcbd43b2ed2cdb80814bb /examples/nft-table-upd.c
parent835d645f4052551c5c1829c37a07c882f2260f65 (diff)
chain: 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: e3ac19b5ec162 ("chain: multi-device support") Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-table-upd.c')
0 files changed, 0 insertions, 0 deletions