aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-07-25 21:43:53 +0000
committerGuy Harris <guy@alum.mit.edu>2002-07-25 21:43:53 +0000
commit6d68a964e50539af22a9678fb629abe694b89d22 (patch)
tree5b5003ac99232961f257f9bcfb0bd2b64020beef /packet-sip.c
parente9310b2f1461a623771ea11d68ef2612e09b9dcc (diff)
From Stefan Wenk: remove an unnecessary +1 from some offset
computations. svn path=/trunk/; revision=5905
Diffstat (limited to 'packet-sip.c')
-rw-r--r--packet-sip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-sip.c b/packet-sip.c
index 2aa4517072..de4cc9438c 100644
--- a/packet-sip.c
+++ b/packet-sip.c
@@ -15,7 +15,7 @@
* Copyright 2000, Heikki Vatiainen <hessu@cs.tut.fi>
* Copyright 2001, Jean-Francois Mule <jfm@clarent.com>
*
- * $Id: packet-sip.c,v 1.30 2002/07/17 06:55:20 guy Exp $
+ * $Id: packet-sip.c,v 1.31 2002/07/25 21:43:53 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -215,7 +215,7 @@ dissect_sip_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
return FALSE;
}
- if (!tvb_bytes_exist(tvb, eol - SIP2_HDR_LEN + 1, SIP2_HDR_LEN)) {
+ if (!tvb_bytes_exist(tvb, eol - SIP2_HDR_LEN, SIP2_HDR_LEN)) {
/*
* We don't have enough of the data in the line
* to check.
@@ -223,7 +223,7 @@ dissect_sip_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return FALSE;
}
- if (tvb_strneql(tvb, eol - SIP2_HDR_LEN + 1, SIP2_HDR, SIP2_HDR_LEN - 1) != 0) {
+ if (tvb_strneql(tvb, eol - SIP2_HDR_LEN, SIP2_HDR, SIP2_HDR_LEN - 1) != 0) {
/*
* Not a request, either.
*/
@@ -239,7 +239,6 @@ dissect_sip_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return TRUE;
}
-
/* Returns the offset to the start of the optional message-body, or
* -1 if not found.
*/