summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-04-05 20:31:37 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-04-07 10:48:55 +0200
commite7ff8bab1f72c5b45ead02a0e5302359616e5cdc (patch)
treeebf1c2ee0f3143539f142492c7d4e1c046970f2a /src/common.c
parenta6d9aeb52e3c40bf064c49d869b71a27506c080a (diff)
src: fix bogus assertion for unset attributes
If you try to obtain an unset attribute, you hit an assertion error that should not happen. Fix this by checking if the attribute is unset, otherwise skip the assertion checking. Now that we have that nft_assert takes the data parameter, we can also validate if someone is using the setter passing NULL, which is illegal. So let's add an assertion for that as well. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/common.c')
0 files changed, 0 insertions, 0 deletions