On Wed, 2020-06-24 at 21:07 +1000, Alistair Leslie-Hughes wrote:
On 24/6/20 6:33 pm, Hans Leidekker wrote:
- if ((ret = receive_bytes( netconn, (char *)&socket->status, sizeof(socket->status), &count ))) goto done;
- if (count != sizeof(socket->status))
- {
ret = ERROR_WINHTTP_INVALID_SERVER_RESPONSE;
goto done;
- }
- socket->status = RtlUshortByteSwap( socket->status );
- ret = receive_bytes( netconn, socket->reason, sizeof(socket->reason), &socket->reason_len );
The status and reason message are optional for the close packet and is causing an error on my test application. The packet length will show if it has a code.
Yes, I have patch for it.