bugfix in VIFE parser
This commit is contained in:
parent
0a0403988c
commit
88b2b9fafa
@ -2835,7 +2835,7 @@ mbus_data_variable_parse(mbus_frame *frame, mbus_data_variable *data)
|
||||
{
|
||||
unsigned char vife;
|
||||
|
||||
if (record->drh.vib.nvife < NITEMS(record->drh.vib.vife))
|
||||
if (record->drh.vib.nvife > NITEMS(record->drh.vib.vife))
|
||||
{
|
||||
mbus_data_record_free(record);
|
||||
snprintf(error_str, sizeof(error_str), "Too many VIFE.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user