Skip to content

Commit 5624dce

Browse files
committed
UniRec output: fixed empty basicList not being properly processed
1 parent ab5e8d9 commit 5624dce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extra_plugins/output/unirec/src/translator.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,12 +1658,12 @@ translator_translate(translator_t *trans, struct fds_drec *ipfix_rec, uint16_t f
16581658
key.ipfix.next = NULL;
16591659

16601660
if (info->def && info->def->data_type == FDS_ET_BASIC_LIST) {
1661-
struct fds_blist_iter list_it;
1661+
struct fds_blist_iter list_it;
16621662

1663-
fds_blist_iter_init(&list_it, &it.field, NULL);
1664-
if (fds_blist_iter_next(&list_it) != FDS_OK) {
1665-
continue;
1666-
}
1663+
fds_blist_iter_init(&list_it, &it.field, NULL);
1664+
if (fds_blist_iter_next(&list_it) == FDS_ERR_FORMAT) {
1665+
continue;
1666+
}
16671667
const struct fds_tfield *tmp = list_it.field.info;
16681668
ipx_list_elem.id = tmp->id;
16691669
ipx_list_elem.pen = tmp->en;

0 commit comments

Comments
 (0)