diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-01-03 16:41:08 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-01-03 16:41:08 +0000 |
commit | 5b7f184296c4e10f933d0448f40d267fb1b583f7 (patch) | |
tree | e67e6a292cf66edf79431f30778f239fc9468f4e /packet-l2tp.c | |
parent | b151ddecbb6800271e1cc2b8b0d2bb355dadbe89 (diff) |
Ensure that all value_string arrays end in {0, NULL}. Dissectors got away
with not terminating their arrays because they knew the limits of the
value used to look up strings in the value_string array, but the
dfilter_expr_dlg does not know these limits and must rely on the terminating
{0, NULL} record.
Also, in SNA fixed a bug in which a field should have been defined as FT_UINT8
but was defined as FT_BOOLEAN.
In WTP, fixed a value string which had duplicate keys.
svn path=/trunk/; revision=2817
Diffstat (limited to 'packet-l2tp.c')
-rw-r--r-- | packet-l2tp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-l2tp.c b/packet-l2tp.c index 57e25869e1..ff5541cf86 100644 --- a/packet-l2tp.c +++ b/packet-l2tp.c @@ -7,7 +7,7 @@ * Laurent Cazalet <laurent.cazalet@mailclub.net> * Thomas Parvais <thomas.parvais@advalvas.be> * - * $Id: packet-l2tp.c,v 1.18 2001/01/03 06:55:29 guy Exp $ + * $Id: packet-l2tp.c,v 1.19 2001/01/03 16:41:06 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -148,6 +148,7 @@ static const char *data_msg = "Data Message"; static const value_string l2tp_type_vals[] = { { 0, "Data Message" }, { 1, "Control Message" }, + { 0, NULL }, }; static const true_false_string l2tp_length_bit_truth = |