aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lapd.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2013-01-23 06:11:18 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2013-01-23 06:11:18 +0000
commit260cafb04c8ff616c21ced1187fe35199a0bbd5f (patch)
tree6b6a580d105c0ca96729c7ee4e19ce445a1f0201 /epan/dissectors/packet-lapd.c
parent0cb2a257dee749e8d62c40d1a831efad8a87afce (diff)
Fix for CID 280286:
Take negative value into account, avoid all casting in the process. svn path=/trunk/; revision=47223
Diffstat (limited to 'epan/dissectors/packet-lapd.c')
-rw-r--r--epan/dissectors/packet-lapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lapd.c b/epan/dissectors/packet-lapd.c
index fc0c492b99..4b20412b8b 100644
--- a/epan/dissectors/packet-lapd.c
+++ b/epan/dissectors/packet-lapd.c
@@ -205,7 +205,7 @@ dissect_lapd_bitstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
gboolean bit;
guint8 i, ones = 0, data[MAX_LAPD_PACKET_LEN];
int data_len = 0;
- guint offset = 0, available;
+ gint offset = 0, available;
guint8 *buff;
tvbuff_t *new_tvb;