summaryrefslogtreecommitdiff
path: root/plugins/opcua/opcua.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-12-07 16:57:14 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-12-07 16:57:14 +0000
commit55056551995b4e28b1acc663ae5cdeba1b1591f0 (patch)
tree93cbff70a382df36b887108c7f8422cd8639d548 /plugins/opcua/opcua.c
parent65384d0091bfa53026474b1833f2475a80ef23a3 (diff)
downloadwireshark-55056551995b4e28b1acc663ae5cdeba1b1591f0.tar.gz
From hannes:
'Fix for displaying the payload of the first chunk correctly. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8068 svn path=/trunk/; revision=46445
Diffstat (limited to 'plugins/opcua/opcua.c')
-rw-r--r--plugins/opcua/opcua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/opcua/opcua.c b/plugins/opcua/opcua.c
index 91ca3bb8fc..a577c44c1f 100644
--- a/plugins/opcua/opcua.c
+++ b/plugins/opcua/opcua.c
@@ -348,7 +348,6 @@ static void dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree
if (frag_msg == NULL)
{
/* first fragment */
- offset = 0;
opcua_seqnum = 0;
}
else
@@ -420,6 +419,10 @@ static void dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree
/* parse the service if not chunked or last chunk */
if (msgtype == MSG_MESSAGE && bParseService)
{
+ if (bIsLastFragment != FALSE)
+ {
+ offset = 0;
+ }
iServiceId = parseService(transport_tree, next_tvb, &offset);
}