aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
diff options
context:
space:
mode:
authorobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-08 22:52:31 +0000
committerobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-08 22:52:31 +0000
commitbe6fe7785676da1076357546ae4f729796aa5e9d (patch)
treecdc6909b9f8c081c2e5a3513cb11d4c629dd791a /epan/dissectors/packet-wsp.c
parentf97b3f2ab470c2a24241d267c7856df1b649b796 (diff)
Fix Coverity issue CID: 14 in wkh_accept_encoding().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17539 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r--epan/dissectors/packet-wsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c
index 2e1e5b3ad9..a5940d6978 100644
--- a/epan/dissectors/packet-wsp.c
+++ b/epan/dissectors/packet-wsp.c
@@ -2623,7 +2623,7 @@ wkh_accept_encoding(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
off = val_start + val_len_len;
peek = tvb_get_guint8(tvb, off);
if (is_short_integer(peek)) {
- switch (val_id) {
+ switch (peek) {
case 0x80: /* gzip */
tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start);
ti = proto_tree_add_string(tree, hf_hdr_accept_encoding,