diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-07-16 17:00:58 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-07-16 17:00:58 +0000 |
commit | 517d9cec5f3ef6c70753de30f71c7a7343ef1f87 (patch) | |
tree | 6d8e8474f6b8fd561521f698fd10776294e30532 /asn1/snmp | |
parent | bca2a168796ff7d16475595a081c244762c567fe (diff) | |
download | wireshark-517d9cec5f3ef6c70753de30f71c7a7343ef1f87.tar.gz wireshark-517d9cec5f3ef6c70753de30f71c7a7343ef1f87.tar.bz2 wireshark-517d9cec5f3ef6c70753de30f71c7a7343ef1f87.zip |
Don't crash if we happen to load a bad MIB file.
svn path=/trunk/; revision=29118
Diffstat (limited to 'asn1/snmp')
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 4215acf1e2..a618ab533f 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -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 { |