aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-osi-options.c
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2005-05-07 00:14:11 +0000
committerLars Roland <Lars.Roland@gmx.net>2005-05-07 00:14:11 +0000
commit52d26f6eb8cb0538c9bc8adb5e04b85e390daef9 (patch)
tree631cfdbd0dfac59c581977a09c513950378f1a40 /epan/dissectors/packet-osi-options.c
parenta456014e297060b3a5839bc131308fb9463e078f (diff)
Increase size of an integer to prevent an integer overflow
Fixes Bug 162 svn path=/trunk/; revision=14325
Diffstat (limited to 'epan/dissectors/packet-osi-options.c')
-rw-r--r--epan/dissectors/packet-osi-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-osi-options.c b/epan/dissectors/packet-osi-options.c
index b7f2530398..6b2cc0d8ee 100644
--- a/epan/dissectors/packet-osi-options.c
+++ b/epan/dissectors/packet-osi-options.c
@@ -217,7 +217,7 @@ dissect_option_route( guchar parm_type, int offset, guchar parm_len,
tvbuff_t *tvb, proto_tree *tree ) {
guchar next_hop = 0;
- guchar this_hop = 0;
+ guint16 this_hop = 0;
guchar netl = 0;
guchar last_hop = 0;
guchar cnt_hops = 0;