aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-07-13 22:49:17 +0000
committerGerald Combs <gerald@wireshark.org>2010-07-13 22:49:17 +0000
commit3a5ba15b4d2ef710efc55bbab9331225f5e69a2e (patch)
tree3886e09ac7068c41eb3e93d27831b46e0fb72cd0
parent041cd31c9ed1d265b344872278ca1928918e5863 (diff)
Rename a variable. "tmp_len" was too similar to "tmp_length".
svn path=/trunk/; revision=33506
-rw-r--r--epan/dissectors/packet-ber.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index b0719f5a7c..bbd85a2820 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -959,7 +959,7 @@ int dissect_ber_identifier(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *t
static int
try_get_ber_length(tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind, gint nest_level) {
guint8 oct, len;
- guint32 tmp_len;
+ guint32 indef_len;
guint32 tmp_length;
gboolean tmp_ind;
int tmp_offset,s_offset;
@@ -1000,9 +1000,9 @@ try_get_ber_length(tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind, gi
/* not an EOC at offset */
s_offset=offset;
offset= get_ber_identifier(tvb, offset, &tclass, &tpc, &ttag);
- offset= try_get_ber_length(tvb,offset, &tmp_len, NULL, nest_level+1);
- tmp_length += tmp_len+(offset-s_offset); /* length + tag and length */
- offset += tmp_len;
+ offset= try_get_ber_length(tvb,offset, &indef_len, NULL, nest_level+1);
+ tmp_length += indef_len+(offset-s_offset); /* length + tag and length */
+ offset += indef_len;
/* Make sure we've moved forward in the packet */
if (offset <= s_offset)
THROW(ReportedBoundsError);