Skip to content

Commit 43c6ece

Browse files
committed
UniRec output: fixed invalid params passed to store function
1 parent 5624dce commit 43c6ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extra_plugins/output/unirec/src/translator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ translate_uint(translator_t *trans, const struct translator_rec *rec,
227227
void *field_ptr = ur_get_ptr_by_id(trans->record.ur_tmplt, trans->record.data, ur_id);
228228
const enum fds_iemgr_element_semantic ipx_sem = rec->ipfix.sem;
229229

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

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

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

0 commit comments

Comments
 (0)