summaryrefslogtreecommitdiff
path: root/asn1/snmp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-07-01 17:57:53 +0000
committerGerald Combs <gerald@wireshark.org>2010-07-01 17:57:53 +0000
commitad7b7cc679ac4c6bbf9cfc1420751aa4f768cf07 (patch)
treeed3ef504528b22e50f5db4a82683a019403eec4c /asn1/snmp
parenta7df969fb10244605e2bb6d1bc747657c29b0391 (diff)
downloadwireshark-ad7b7cc679ac4c6bbf9cfc1420751aa4f768cf07.tar.gz
Don't add raw bytes to the tree.
svn path=/trunk/; revision=33403
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index f3def88c23..8193fc537b 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -478,9 +478,10 @@ extern int dissect_snmp_VarBind(gboolean implicit_tag _U_,
add_oid_debug_subtree(oid_info,pt_name);
if (!subids) {
- proto_item* pi = proto_tree_add_text(pt_name,tvb, 0, 0, "invalid oid: %s", oid_bytes);
+ repr = oid_encoded2string(oid_bytes, name_len);
+ proto_item* pi = proto_tree_add_text(pt_name,tvb, 0, 0, "invalid oid: %s", repr);
pt = proto_item_add_subtree(pi, ett_decoding_error);
- expert_add_info_format(actx->pinfo, pi, PI_MALFORMED, PI_WARN, "invalid oid: %s", oid_bytes);
+ expert_add_info_format(actx->pinfo, pi, PI_MALFORMED, PI_WARN, "invalid oid: %s", repr);
return dissect_unknown_ber(actx->pinfo, tvb, name_offset, pt);
}