Removed additional '\0' from TUNNEL_AUTH message.
This commit is contained in:
parent
9afa9282e6
commit
7dcba9a663
@ -206,7 +206,7 @@ BOOL rdg_send_tunnel_authorization(rdpRdg* rdg)
|
|||||||
if (!clientName)
|
if (!clientName)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
packetSize = 12 + clientNameLen * 2 + sizeof(WCHAR);
|
packetSize = 12 + clientNameLen * sizeof(WCHAR);
|
||||||
s = Stream_New(NULL, packetSize);
|
s = Stream_New(NULL, packetSize);
|
||||||
|
|
||||||
if (!s)
|
if (!s)
|
||||||
@ -225,8 +225,6 @@ BOOL rdg_send_tunnel_authorization(rdpRdg* rdg)
|
|||||||
for (i = 0; i < clientNameLen; i++)
|
for (i = 0; i < clientNameLen; i++)
|
||||||
Stream_Write_UINT16(s, clientName[i]);
|
Stream_Write_UINT16(s, clientName[i]);
|
||||||
|
|
||||||
Stream_Write_UINT16(s, 0);
|
|
||||||
|
|
||||||
Stream_SealLength(s);
|
Stream_SealLength(s);
|
||||||
|
|
||||||
status = rdg_write_packet(rdg, s);
|
status = rdg_write_packet(rdg, s);
|
||||||
|
Loading…
Reference in New Issue
Block a user