libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2010 17:52:46 +0000 (18:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 29 Jan 2010 14:55:10 +0000 (15:55 +0100)
commitc50a17cc8d6bc23f03c3d44ceccebce06417ba21
tree90f8b3db65a0925afb65b0d2903cfbe256a233b8
parenta20b43f23f2254edb1fcd6d3916dd57e6a4778ee
libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()

[MS-WINSRA] — v20091104 was wrong
regarding section "2.2.10.1 Name Record"

If the name buffer is already 4 byte aligned
Windows (at least 2003 SP1 and 2008) add 4 extra
bytes. This can happen when the name has a scope.

metze
libcli/nbt/nbtname.c