mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-18 15:14:10 +01:00
Fix a guard condition to check the correct thing
This commit is contained in:
parent
f9e62ba042
commit
c911749430
@ -473,7 +473,7 @@ DWORD request_net_socket_tcp_shutdown(Remote *remote, Packet *packet)
|
|||||||
how = met_api->packet.get_tlv_value_uint(packet, TLV_TYPE_SHUTDOWN_HOW);
|
how = met_api->packet.get_tlv_value_uint(packet, TLV_TYPE_SHUTDOWN_HOW);
|
||||||
|
|
||||||
channel = met_api->channel.find_by_id(cid);
|
channel = met_api->channel.find_by_id(cid);
|
||||||
if (!response)
|
if (!channel)
|
||||||
{
|
{
|
||||||
BREAK_WITH_ERROR("[TCP] request_net_socket_tcp_shutdown. channel == NULL", ERROR_INVALID_HANDLE);
|
BREAK_WITH_ERROR("[TCP] request_net_socket_tcp_shutdown. channel == NULL", ERROR_INVALID_HANDLE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user