fix dissect_ndr_varying_array_hdr
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Mar 2022 23:33:18 +0000 (00:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 May 2024 11:13:14 +0000 (13:13 +0200)
epan/dissectors/packet-dcerpc.c

index d4a3252181764ac516a60802ecdc78fadfb8962c..b3f953369424e9fa51c67b5442345862f5a4366c 100644 (file)
@@ -2488,13 +2488,13 @@ dissect_ndr_varying_array_hdr(tvbuff_t *tvb, gint offset, packet_info *pinfo,
     offset = dissect_ndr_uint3264(tvb, offset, pinfo, tree, di, drep,
                                   -1, &val);
     DISSECTOR_ASSERT(val <= G_MAXUINT32);
-    di->array_offset = (guint32)val;
-    di->array_offset_offset = offset-conformance_size;
+    nga->offset = (guint32)val;
+    nga->offset_offset = offset-conformance_size;
     offset = dissect_ndr_uint3264(tvb, offset, pinfo, tree, di, drep,
                                   -1, &val);
     DISSECTOR_ASSERT(val <= G_MAXUINT32);
-    di->array_actual_count = (guint32)val;
-    di->array_actual_count_offset = offset-conformance_size;
+    nga->actual_count = (guint32)val;
+    nga->actual_count_offset = offset-conformance_size;
 
     nga->is_varying = TRUE;