aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-dcerpc-nt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.h b/epan/dissectors/packet-dcerpc-nt.h
index 59dc173469..a86e69e9e5 100644
--- a/epan/dissectors/packet-dcerpc-nt.h
+++ b/epan/dissectors/packet-dcerpc-nt.h
@@ -47,6 +47,15 @@ extern const value_string platform_id_vals[];
} \
} \
}
+#define ALIGN_TO_2_BYTES \
+ { dcerpc_info *xzdi; \
+ xzdi=pinfo->private_data; \
+ if(!xzdi->conformant_run) { \
+ if(offset&0x01) { \
+ offset=(offset&0xfffffffe)+2; \
+ } \
+ } \
+ }
int
dissect_ndr_counted_string_cb(tvbuff_t *tvb, int offset,