winpr/sspi/ntlm: fix GetComputerNameExA parameters
authorNorbert Federa <norbert.federa@thincast.com>
Tue, 14 Jun 2016 10:37:37 +0000 (12:37 +0200)
committerNorbert Federa <norbert.federa@thincast.com>
Tue, 14 Jun 2016 10:37:37 +0000 (12:37 +0200)
commit26ed09a14f2237d33e4df76c35b13bbee59c3ec6
tree9e24a43fed826872d689804e58adb1b569d20fd6
parentf0bdd62e9c560b11435e96e0efee869949e17f04
winpr/sspi/ntlm: fix GetComputerNameExA parameters

On input, the lpnSize [in, out] parameter for GetComputerNameEx()
specifies the total size of the buffer (in characters).
Several functions in ntlm.c were off by one which caused ntlm to fail
if the netbios hostname's strlen was exactly MAX_COMPUTERNAME_LENGTH.
winpr/libwinpr/sspi/NTLM/ntlm.c
winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c