summaryrefslogtreecommitdiff
path: root/plugins/opcua/opcua_application_layer.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/opcua/opcua_application_layer.c')
-rw-r--r--plugins/opcua/opcua_application_layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/opcua/opcua_application_layer.c b/plugins/opcua/opcua_application_layer.c
index 82e8647aac..7d15c75c4a 100644
--- a/plugins/opcua/opcua_application_layer.c
+++ b/plugins/opcua/opcua_application_layer.c
@@ -85,8 +85,8 @@ int parseServiceNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
iOffset+=2;
break;
case 0x02: /* numeric, that does not fit into four bytes */
- proto_tree_add_item(tree, hf_opcua_app_nsid, tvb, iOffset, 4, ENC_LITTLE_ENDIAN);
- iOffset+=4;
+ proto_tree_add_item(tree, hf_opcua_app_nsid, tvb, iOffset, 2, ENC_LITTLE_ENDIAN);
+ iOffset+=2;
Numeric = tvb_get_letohl(tvb, iOffset);
proto_tree_add_item(tree, hf_opcua_app_numeric, tvb, iOffset, 4, ENC_LITTLE_ENDIAN);
iOffset+=4;