Note that we should redo the handling of OIDs when

"dissect_ber_object_identifier()" can return the OID in a binary form.

svn path=/trunk/; revision=16036
This commit is contained in:
Guy Harris 2005-09-28 08:01:54 +00:00
parent 3452023b80
commit 322999c545
1 changed files with 2 additions and 0 deletions

View File

@ -1157,6 +1157,8 @@ snmp_variable_decode(proto_tree *snmp_tree, packet_info *pinfo,
break;
case SNMP_OBJECTID:
/* XXX Redo this using dissect_ber_object_identifier when
it returns tvb or some other binary form of an OID */
oid_buf = tvb_get_ptr(asn1->tvb, vb_value_start, vb_length);
vb_oid = g_malloc((vb_length+1) * sizeof(gulong));
vb_oid_length = oid_to_subid_buf(oid_buf, vb_length, vb_oid, ((vb_length+1) * sizeof(gulong)));