aboutsummaryrefslogtreecommitdiffstats
path: root/packet-giop.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-15 08:24:52 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-15 08:24:52 +0000
commit831e6b1d442c40b4d8eede54e5aba0dbc708e7c0 (patch)
tree6895f8c112ecfbdb32d3d40f7ac41410dc005ebc /packet-giop.c
parent6952aec7c5b070053cc793c56dbf9f38753b9725 (diff)
Fix a comment to more accurately describe what the statement following
it does. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7156 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-giop.c')
-rw-r--r--packet-giop.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/packet-giop.c b/packet-giop.c
index a959830495..e49aacad46 100644
--- a/packet-giop.c
+++ b/packet-giop.c
@@ -9,7 +9,7 @@
* Frank Singleton <frank.singleton@ericsson.com>
* Trevor Shepherd <eustrsd@am1.ericsson.se>
*
- * $Id: packet-giop.c,v 1.68 2003/02/14 07:14:18 guy Exp $
+ * $Id: packet-giop.c,v 1.69 2003/02/15 08:24:52 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -4787,7 +4787,12 @@ void decode_ServiceContextList(tvbuff_t *tvb, proto_tree *ptree, int *offset,
if (seqlen_cd == 0)
continue;
- /* Skip the byte-order octet */
+ /* "get_CDR_encap_info()" has already processed the byte order octet,
+ * so "*offset" points past it; however, "seqlen_cd" includes the
+ * byte order offset, so update it not to include it, so that
+ * "seqlen_cd" refers to the amount of data remaining in the
+ * encapsulation starting at the offset "*offset".
+ */
seqlen_cd -= 1;
if (seqlen_cd == 0)