diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-01 08:40:22 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-01 08:40:22 +0000 |
commit | d6a775897e565a6a4d700e0b276ac705f01fc9d9 (patch) | |
tree | b61f76d7bc9b8b59e0b5c3674d7bfc6f6e161a41 /packet-q2931.c | |
parent | ef84d94eb2747d28f536a65d929897afd50fbf9a (diff) |
Add a check for a zero-length IE to "dissect_q2931_shift_ie()".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5337 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-q2931.c')
-rw-r--r-- | packet-q2931.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-q2931.c b/packet-q2931.c index 042069fae3..19a868f737 100644 --- a/packet-q2931.c +++ b/packet-q2931.c @@ -2,7 +2,7 @@ * Routines for Q.2931 frame disassembly * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-q2931.c,v 1.23 2002/04/14 23:04:03 guy Exp $ + * $Id: packet-q2931.c,v 1.24 2002/05/01 08:40:22 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -257,6 +257,8 @@ dissect_q2931_shift_ie(tvbuff_t *tvb, int offset, int len, gboolean non_locking_shift; guint8 codeset; + if (len == 0) + return; non_locking_shift = (info_element == Q2931_IE_BBAND_NLOCKING_SHIFT); codeset = tvb_get_guint8(tvb, offset) & 0x07; proto_tree_add_text(tree, tvb, offset, 1, "%s shift to codeset %u: %s", |