Skip to content

Commit

Permalink
UniRec output: fixed invalid params passed to store function
Browse files Browse the repository at this point in the history
  • Loading branch information
havraji6 committed Mar 25, 2020
1 parent 5624dce commit 43c6ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra_plugins/output/unirec/src/translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ translate_uint(translator_t *trans, const struct translator_rec *rec,
void *field_ptr = ur_get_ptr_by_id(trans->record.ur_tmplt, trans->record.data, ur_id);
const enum fds_iemgr_element_semantic ipx_sem = rec->ipfix.sem;

if (translator_store_uint(ur_id, field_ptr, value, ipx_sem)) {
if (translator_store_uint(rec->unirec.type, field_ptr, value, ipx_sem)) {
return 1;
}

Expand Down Expand Up @@ -316,7 +316,7 @@ translate_int(translator_t *trans, const struct translator_rec *rec,
void *field_ptr = ur_get_ptr_by_id(trans->record.ur_tmplt, trans->record.data, ur_id);
const enum fds_iemgr_element_semantic ipx_sem = rec->ipfix.sem;

if (translator_store_int(ur_id, field_ptr, value, ipx_sem)) {
if (translator_store_int(rec->unirec.type, field_ptr, value, ipx_sem)) {
return 1;
}

Expand Down

0 comments on commit 43c6ece

Please sign in to comment.