Subject: [PATCH 4/7] packet-winsrepl.c: handle the strange alignment after
names
metze
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31795
f5534014-38df-0310-8fa8-
9805f1628bb7
winsrepl_offset += name_len;
/* ALIGN to 4 Byte */
- winsrepl_offset += ((winsrepl_offset & (4-1)) == 0 ? 0 : (4 - (winsrepl_offset & (4-1))));
+ /* winsrepl_offset += ((winsrepl_offset & (4-1)) == 0 ? 0 : (4 - (winsrepl_offset & (4-1)))); */
+ /* Windows including w2k8 add 4 padding bytes, when it's already 4 byte
+ * alligned... This happens when the name has a "scope" part
+ */
+ winsrepl_offset += 4 - (winsrepl_offset & (4-1));
/* FLAGS */
/*