mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[clang-tidy] clang-analyzer-core.NullDereference
This commit is contained in:
@@ -1333,7 +1333,7 @@ BOOL pf_channel_rdpdr_client_handle(pClientContext* pc, UINT16 channelId, const
|
||||
rdpdr = HashTable_GetItemValue(pc->interceptContextMap, channel_name);
|
||||
if (!rdpdr)
|
||||
{
|
||||
CLIENT_RX_LOG(rdpdr->log, WLOG_ERROR,
|
||||
CLIENT_RX_LOG(WLog_Get(RTAG), WLOG_ERROR,
|
||||
"Channel %s [0x%04" PRIx16 "] missing context in interceptContextMap",
|
||||
channel_name, channelId);
|
||||
return FALSE;
|
||||
@@ -1837,7 +1837,7 @@ static pf_channel_server_context* get_channel(pServerContext* ps, BOOL send)
|
||||
rdpdr = HashTable_GetItemValue(ps->interceptContextMap, RDPDR_SVC_CHANNEL_NAME);
|
||||
if (!rdpdr)
|
||||
{
|
||||
SERVER_RXTX_LOG(send, rdpdr->log, WLOG_ERROR,
|
||||
SERVER_RXTX_LOG(send, WLog_Get(RTAG), WLOG_ERROR,
|
||||
"Channel %s missing context in interceptContextMap",
|
||||
RDPDR_SVC_CHANNEL_NAME);
|
||||
return NULL;
|
||||
|
||||
@@ -707,7 +707,8 @@ int shadow_server_stop(rdpShadowServer* server)
|
||||
WaitForSingleObject(server->thread, INFINITE);
|
||||
CloseHandle(server->thread);
|
||||
server->thread = NULL;
|
||||
server->listener->Close(server->listener);
|
||||
if (server->listener && server->listener->Close)
|
||||
server->listener->Close(server->listener);
|
||||
}
|
||||
|
||||
if (server->screen)
|
||||
|
||||
Reference in New Issue
Block a user