aboutsummaryrefslogtreecommitdiffstats
path: root/packet-fix.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-06-10 05:53:33 +0000
committerGuy Harris <guy@alum.mit.edu>2003-06-10 05:53:33 +0000
commit9d24268f8f14e8c5b69c4dfac7df61c84eb9880b (patch)
tree8197b8d16a2325ba9b2cf0ec0ecfcfa79af15a02 /packet-fix.c
parenteab7ed158bbec1c30bacc6cef071cd762b5ed174 (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. svn path=/trunk/; revision=7826
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;
}