mirror of https://github.com/FreeRDP/FreeRDP
GW RPC-HTTP login fix
* f469e069dc
introduced a logic flip
that broke RPC-HTTP Gateway. Fix that.
This commit is contained in:
parent
423b15108d
commit
3910baf49d
|
@ -425,7 +425,7 @@ int rpc_client_recv_fragment(rdpRpc* rpc, wStream* fragment)
|
|||
pdu->Flags = 0;
|
||||
pdu->Type = header->common.ptype;
|
||||
pdu->CallId = header->common.call_id;
|
||||
if (Stream_EnsureCapacity(pdu->s, Stream_Length(fragment)))
|
||||
if (!Stream_EnsureCapacity(pdu->s, Stream_Length(fragment)))
|
||||
return -1;
|
||||
Stream_Write(pdu->s, buffer, Stream_Length(fragment));
|
||||
Stream_SealLength(pdu->s);
|
||||
|
|
Loading…
Reference in New Issue