diff --git a/channels/smartcard/client/smartcard_main.c b/channels/smartcard/client/smartcard_main.c index 088614810..fb9f4928d 100644 --- a/channels/smartcard/client/smartcard_main.c +++ b/channels/smartcard/client/smartcard_main.c @@ -227,7 +227,6 @@ void smartcard_context_free(void* pCtx) /* cancel blocking calls like SCardGetStatusChange */ WINPR_ASSERT(pContext->smartcard); smartcard_call_cancel_context(pContext->smartcard->callctx, pContext->hContext); - smartcard_call_context_signal_stop(pContext->smartcard->callctx, FALSE); if (pContext->IrpQueue) { diff --git a/libfreerdp/core/gateway/tsg.c b/libfreerdp/core/gateway/tsg.c index 76817289d..b3450762c 100644 --- a/libfreerdp/core/gateway/tsg.c +++ b/libfreerdp/core/gateway/tsg.c @@ -1962,8 +1962,7 @@ static BOOL TsProxyAuthorizeTunnelReadResponse(rdpTsg* tsg, const RPC_PDU* pdu) goto fail; } - UINT32 PacketResponsePtr = 0; - if (!tsg_ndr_pointer_read(log, pdu->s, &index, &PacketResponsePtr, TRUE)) + if (!tsg_ndr_pointer_read(log, pdu->s, &index, NULL, TRUE)) goto fail; if (!Stream_CheckAndLogRequiredLengthWLog(log, pdu->s, 8))