aboutsummaryrefslogtreecommitdiffstats
path: root/packet-fix.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-06-10 05:53:33 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-06-10 05:53:33 +0000
commitdda8eb9b40f7d4b735bd340d5e465bf153f5db6a (patch)
tree8197b8d16a2325ba9b2cf0ec0ecfcfa79af15a02 /packet-fix.c
parentf4f704dd224394d0793e2de1e59aba4343574284 (diff)
As "tvb_strneql()" and "tvb_memeql()" now just return -1, rather than
throwing an exception, if the bytes to be compared aren't available in the tvbuff, we don't need to check for their existence before calling those routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7826 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-fix.c')
-rw-r--r--packet-fix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-fix.c b/packet-fix.c
index 75cf54810e..7a57743a16 100644
--- a/packet-fix.c
+++ b/packet-fix.c
@@ -2,7 +2,7 @@
* Routines for Financial Information eXchange (FIX) Protocol dissection
* Copyright 2000, PC Drew <drewpc@ibsncentral.com>
*
- * $Id: packet-fix.c,v 1.3 2003/05/19 03:23:11 gerald Exp $
+ * $Id: packet-fix.c,v 1.4 2003/06/10 05:53:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -837,7 +837,7 @@ dissect_fix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
int value_len = 0;
/* get at least the fix version: 8=FIX.x.x */
- if (!tvb_bytes_exist(tvb, 0, 6) || tvb_strneql(tvb, 0, "8=FIX.", 6) != 0) {
+ if (tvb_strneql(tvb, 0, "8=FIX.", 6) != 0) {
/* not a fix packet */
return FALSE;
}