GW RPC-HTTP login fix

* f469e069dc introduced a logic flip
  that broke RPC-HTTP Gateway.  Fix that.
This commit is contained in:
Daniel Bungert 2015-04-10 14:50:17 -06:00
parent 423b15108d
commit 3910baf49d
1 changed files with 1 additions and 1 deletions

View File

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