path: root/examples/nft-events.c
diff options
authorPablo Neira Ayuso <>2014-04-05 20:31:37 +0200
committerPablo Neira Ayuso <>2014-04-07 10:48:55 +0200
commite7ff8bab1f72c5b45ead02a0e5302359616e5cdc (patch)
treeebf1c2ee0f3143539f142492c7d4e1c046970f2a /examples/nft-events.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 <>
Diffstat (limited to 'examples/nft-events.c')
0 files changed, 0 insertions, 0 deletions