GW RPC-HTTP login fix
authorDaniel Bungert <bungert@hp.com>
Fri, 10 Apr 2015 20:50:17 +0000 (14:50 -0600)
committerDaniel Bungert <bungert@hp.com>
Fri, 10 Apr 2015 20:50:17 +0000 (14:50 -0600)
f469e069dc8287f6fcfe0741961022e0cc50170f introduced a logic flip
  that broke RPC-HTTP Gateway.  Fix that.

libfreerdp/core/gateway/rpc_client.c

index eaff47d..1d8e459 100644 (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);