aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-07-16 17:00:58 +0000
committerGerald Combs <gerald@wireshark.org>2009-07-16 17:00:58 +0000
commit517d9cec5f3ef6c70753de30f71c7a7343ef1f87 (patch)
tree6d8e8474f6b8fd561521f698fd10776294e30532 /asn1/snmp
parentbca2a168796ff7d16475595a081c244762c567fe (diff)
downloadwireshark-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.c2
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 {