summaryrefslogtreecommitdiff
path: root/asn1/snmp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-04-07 23:52:37 +0000
committerGerald Combs <gerald@wireshark.org>2011-04-07 23:52:37 +0000
commitf989235a87861ca214adcf66b880d460fd4104fe (patch)
tree470fc31976ddb9ca090ae942b4418c6110986d3e /asn1/snmp
parent56bc7f5e47bdb0254e647aee9a5d6ba79787a934 (diff)
downloadwireshark-f989235a87861ca214adcf66b880d460fd4104fe.tar.gz
Use a unique variable name. Fixes Coverity CID 593.
svn path=/trunk/; revision=36512
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index 03839f7660..90e7d59ff4 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -756,7 +756,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;
@@ -767,12 +767,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);