1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-08 23:33:07 +01:00

Land #254, fix null dereference in transport list

This commit is contained in:
Brent Cook 2017-11-25 15:50:13 -06:00
commit 13db0b392a
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96

View File

@ -219,7 +219,7 @@ DWORD remote_request_core_transport_list(Remote* remote, Packet* packet)
{
packet_add_tlv_raw(transportGroup, TLV_TYPE_TRANS_CERT_HASH, ctx->cert_hash, CERT_HASH_SIZE);
}
if (ctx->custom_headers[0])
if (ctx->custom_headers && ctx->custom_headers[0])
{
packet_add_tlv_wstring(transportGroup, TLV_TYPE_TRANS_HEADERS, ctx->custom_headers);
}