diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-09-05 18:52:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-09-07 11:12:46 +0200 |
commit | d975ab412c33ddce2c39e0e86f87085d13b1aeca (patch) | |
tree | f3c00eec6fc0020940bef78185aa12733ca8130b /src/payload.c | |
parent | 8087280d76c31c851c85bd1d920ba92bb642ad9f (diff) |
netlink_delinearize: Avoid potential null pointer deref
Phil Sutter says:
As netlink_get_register() may return NULL, we must not pass the returned
data unchecked to expr_set_type() as that will dereference it. Since the
parser has failed at that point anyway, by returning early we can skip
the useless statement allocation that follows in
netlink_parse_ct_stmt().
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/payload.c')
0 files changed, 0 insertions, 0 deletions