1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00

Fix a guard condition to check the correct thing

This commit is contained in:
Spencer McIntyre 2020-12-18 16:08:14 -05:00
parent f9e62ba042
commit c911749430

View File

@ -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);
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);
}