From 3910baf49d7841b321934191715821bc7298622f Mon Sep 17 00:00:00 2001 From: Daniel Bungert Date: Fri, 10 Apr 2015 14:50:17 -0600 Subject: [PATCH] GW RPC-HTTP login fix * f469e069dc8287f6fcfe0741961022e0cc50170f introduced a logic flip that broke RPC-HTTP Gateway. Fix that. --- libfreerdp/core/gateway/rpc_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/gateway/rpc_client.c b/libfreerdp/core/gateway/rpc_client.c index eaff47d7b..1d8e45955 100644 --- a/libfreerdp/core/gateway/rpc_client.c +++ b/libfreerdp/core/gateway/rpc_client.c @@ -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);