commit | 7f4a7b891332899cea26e95be0337aae01648742 | [log] [tgz] |
---|---|---|
author | Jan Safranek <jsafranek@users.sourceforge.net> | Thu Jul 31 13:46:49 2014 +0200 |
committer | Jan Safranek <jsafranek@users.sourceforge.net> | Thu Aug 28 09:30:14 2014 +0200 |
tree | 3b4ae25c98a189b647d07e773e7d95aa02b5bf36 | |
parent | 418132f43cc43231966a8b9672c626f60b991039 [diff] |
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).