mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-30 13:07:22 +02:00
Update server_transport_winhttp.c
The response code from packet_transmit_http was hardcoded to always return ERROR_SUCCESS. This fix emulates how errors are debug-printed and returned from server_transport_tcp and server_transport_pipe.
This commit is contained in:
parent
1c6241604d
commit
dd91ed13e9
@ -292,8 +292,6 @@ static DWORD packet_transmit_http(Remote *remote, LPBYTE rawPacket, DWORD rawPac
|
|||||||
{
|
{
|
||||||
DWORD result = ERROR_SUCCESS;
|
DWORD result = ERROR_SUCCESS;
|
||||||
HINTERNET hReq;
|
HINTERNET hReq;
|
||||||
BOOL result;
|
|
||||||
DWORD retries = 5;
|
|
||||||
HttpTransportContext* ctx = (HttpTransportContext*)remote->transport->ctx;
|
HttpTransportContext* ctx = (HttpTransportContext*)remote->transport->ctx;
|
||||||
|
|
||||||
lock_acquire(remote->lock);
|
lock_acquire(remote->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user