diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-04-07 23:52:37 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-04-07 23:52:37 +0000 |
commit | f989235a87861ca214adcf66b880d460fd4104fe (patch) | |
tree | 470fc31976ddb9ca090ae942b4418c6110986d3e /epan/dissectors/packet-snmp.c | |
parent | 56bc7f5e47bdb0254e647aee9a5d6ba79787a934 (diff) |
Use a unique variable name. Fixes Coverity CID 593.
svn path=/trunk/; revision=36512
Diffstat (limited to 'epan/dissectors/packet-snmp.c')
-rw-r--r-- | epan/dissectors/packet-snmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 3c14c631a9..fe1be7620c 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -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 ../../../asn1/snmp/snmp.cnf -s ../../../asn1/snmp/packet-snmp-template -D ../../../asn1/snmp snmp.asn */ +/* ../../tools/asn2wrs.py -b -p snmp -c ./snmp.cnf -s ./packet-snmp-template -D . snmp.asn */ /* Input file: packet-snmp-template.c */ @@ -858,7 +858,7 @@ indexing_done: case BER_CLASS_UNI|(BER_UNI_TAG_INTEGER<<4): { gint64 val=0; - unsigned offset = value_offset; + unsigned int_val_offset = value_offset; unsigned i; max_len = 5; min_len = 1; @@ -869,12 +869,12 @@ indexing_done: if(value_len > 0) { /* extend sign bit */ - if(tvb_get_guint8(tvb, offset)&0x80) { + if(tvb_get_guint8(tvb, int_val_offset)&0x80) { val=-1; } for(i=0;i<value_len;i++) { - val=(val<<8)|tvb_get_guint8(tvb, offset); - offset++; + val=(val<<8)|tvb_get_guint8(tvb, int_val_offset); + int_val_offset++; } } proto_tree_add_int64(pt_varbind, hf_snmp_integer32_value, tvb,value_offset,value_len, val); |