Menu

Commit [7f4a7b]  Maximize  Restore  History

Added checks for printing variables with wrong types.

When -OQ command line argument is used, variable formatter preffers the type
of the varible parsed from a MIB file instead of checking type of the variable
as parsed from SNMP message.

This can lead to crashes when incoming packets contains a variable with
NULL type, while the MIB says the variable should be non-NULL, like Integer.
The formatter then tries to interpret the NULL (from packet) as Integer (from
MIB file).

Jan Safranek Jan Safranek 2014-07-31

changed snmplib/mib.c
snmplib/mib.c Diff Switch to side-by-side view
Loading...