diff options
author | Phil Sutter <phil@nwl.cc> | 2019-12-02 23:12:34 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-12-03 18:34:41 +0100 |
commit | d95a703746d5394d56a9f464e343594e4882da0d (patch) | |
tree | 5fbbe641c1d7b2e00edbcbd43b2ed2cdb80814bb /examples/nft-ct-helper-get.c | |
parent | 835d645f4052551c5c1829c37a07c882f2260f65 (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-ct-helper-get.c')
0 files changed, 0 insertions, 0 deletions