Don't crash if we happen to load a bad MIB file.
svn path=/trunk/; revision=29118
This commit is contained in:
parent
bca2a16879
commit
517d9cec5f
|
@ -694,7 +694,7 @@ show_oid_index:
|
|||
}
|
||||
indexing_done:
|
||||
|
||||
if (oid_info_is_ok) {
|
||||
if (oid_info_is_ok && oid_info->value_type) {
|
||||
if (ber_class == BER_CLASS_UNI && tag == BER_UNI_TAG_NULL) {
|
||||
pi_value = proto_tree_add_item(pt_varbind,hf_snmp_unSpecified,tvb,value_offset,value_len,FALSE);
|
||||
} else {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-snmp.c */
|
||||
/* ../../tools/asn2wrs.py -b -p snmp -c snmp.cnf -s packet-snmp-template snmp.asn */
|
||||
/* ../../tools/asn2wrs.py -b -p snmp -c ./snmp.cnf -s ./packet-snmp-template -D . snmp.asn */
|
||||
|
||||
/* Input file: packet-snmp-template.c */
|
||||
|
||||
|
@ -796,7 +796,7 @@ show_oid_index:
|
|||
}
|
||||
indexing_done:
|
||||
|
||||
if (oid_info_is_ok) {
|
||||
if (oid_info_is_ok && oid_info->value_type) {
|
||||
if (ber_class == BER_CLASS_UNI && tag == BER_UNI_TAG_NULL) {
|
||||
pi_value = proto_tree_add_item(pt_varbind,hf_snmp_unSpecified,tvb,value_offset,value_len,FALSE);
|
||||
} else {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* packet-snmp.h */
|
||||
/* ../../tools/asn2wrs.py -b -p snmp -c snmp.cnf -s packet-snmp-template snmp.asn */
|
||||
/* ../../tools/asn2wrs.py -b -p snmp -c ./snmp.cnf -s ./packet-snmp-template -D . snmp.asn */
|
||||
|
||||
/* Input file: packet-snmp-template.h */
|
||||
|
||||
|
|
Loading…
Reference in New Issue