summaryrefslogtreecommitdiffstats
path: root/src/ruleset.c
diff options
context:
space:
mode:
authorAlvaro Neira <alvaroneay@gmail.com>2015-01-12 14:46:14 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-01-15 13:04:46 +0100
commit1fc12719b6d878622e25825ef32615f281bb5e4d (patch)
treebdc7b855093bab8c26faf42118ad7dd628237084 /src/ruleset.c
parentf9c72b4641bedf6f5b2fc4aefc42887e1884ed63 (diff)
src: don't create iterator with empty list
Currently, we create iterator without test if the list is empty. If the list is empty, we have a crash when we set up the current element. With this patch, we test if the list is empty before to create the iterator. If the list is empty the iterator return NULL. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ruleset.c')
0 files changed, 0 insertions, 0 deletions