diff options
author | Matthias Isele <matthias.isele@gmx.net> | 2023-01-04 08:48:46 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2023-01-04 10:31:24 +0000 |
commit | ddb187fe0c8844ca278a7b6b5a90da3a6f0aa36a (patch) | |
tree | 04ebc7e33970dbe3dcbb4eda7f2e74bfa4ee65e2 /plugins/epan | |
parent | 49b639e5ba4af86f757b661ecd2c250f1974114f (diff) |
fixes #18777 wrong decoding order in parseDiagnosticInfo
Diffstat (limited to 'plugins/epan')
-rw-r--r-- | plugins/epan/opcua/opcua_simpletypes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/epan/opcua/opcua_simpletypes.c b/plugins/epan/opcua/opcua_simpletypes.c index dc1bb0457b..59397889ca 100644 --- a/plugins/epan/opcua/opcua_simpletypes.c +++ b/plugins/epan/opcua/opcua_simpletypes.c @@ -835,14 +835,14 @@ void parseDiagnosticInfo(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gi { parseInt32(subtree, tvb, pinfo, &iOffset, hf_opcua_diag_namespace); } - if (EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG) - { - parseInt32(subtree, tvb, pinfo, &iOffset, hf_opcua_diag_localizedtext); - } if (EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALE_FLAG) { parseInt32(subtree, tvb, pinfo, &iOffset, hf_opcua_diag_locale); } + if (EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT_FLAG) + { + parseInt32(subtree, tvb, pinfo, &iOffset, hf_opcua_diag_localizedtext); + } if (EncodingMask & DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO_FLAG) { parseString(subtree, tvb, pinfo, &iOffset, hf_opcua_diag_additionalinfo); |