diff options
author | Alvaro Neira <alvaroneay@gmail.com> | 2015-01-12 14:46:14 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-01-15 13:04:46 +0100 |
commit | 1fc12719b6d878622e25825ef32615f281bb5e4d (patch) | |
tree | bdc7b855093bab8c26faf42118ad7dd628237084 /tests/jsonfiles | |
parent | f9c72b4641bedf6f5b2fc4aefc42887e1884ed63 (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 'tests/jsonfiles')
0 files changed, 0 insertions, 0 deletions