aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-11-12 14:15:48 +0100
committerAnders Broman <a.broman58@gmail.com>2014-11-12 13:23:14 +0000
commit54aea456331825be6f802edec510e4cb2e6cc34a (patch)
treec8639b6c88b58218b8fcac84f62c664bfed54714
parent63cf93925c9eb4cb48f30a245061049f860cad0f (diff)
[Art-Net]
- The heuristic chek was missing "e" out of "Art-Net\0" - tvb_length() - tvb_captured_length() Change-Id: Iad9900f3a22e2fdbd0d6056efc1af90511cc458a Reviewed-on: https://code.wireshark.org/review/5257 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-artnet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-artnet.c b/epan/dissectors/packet-artnet.c
index 8adb921b86..c6f3684bd8 100644
--- a/epan/dissectors/packet-artnet.c
+++ b/epan/dissectors/packet-artnet.c
@@ -3135,12 +3135,12 @@ dissect_artnet_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d
guint64 qword;
/* check if we atleast have the 8 byte header */
- if (tvb_length(tvb) < 8)
+ if (tvb_captured_length(tvb) < 8)
return FALSE;
- /* Check the 8 byte header "Art-Net\0" = 0x4172742d4e7400*/
+ /* Check the 8 byte header "Art-Net\0" = 0x4172742d4e657400*/
qword = tvb_get_ntoh64(tvb,0);
- if(qword != G_GUINT64_CONSTANT (0x4172742d4e7400))
+ if(qword != G_GUINT64_CONSTANT (0x4172742d4e657400))
return FALSE;
/* if the header matches, dissect it */