Fixed #4436: double free of http response.
authorArmin Novak <armin.novak@thincast.com>
Wed, 14 Feb 2018 13:09:12 +0000 (14:09 +0100)
committerArmin Novak <armin.novak@thincast.com>
Wed, 14 Feb 2018 13:29:08 +0000 (14:29 +0100)
Fixed #4436: reset of token split.

libfreerdp/core/gateway/http.c
libfreerdp/core/gateway/rpc_client.c

index dbd774b..8abd670 100644 (file)
@@ -517,8 +517,6 @@ static BOOL http_response_parse_header_field(HttpResponse* response, const char*
 
                        if (!authScheme || !authValue)
                                return FALSE;
-
-                       *separator = ' ';
                }
                else
                {
index cd96e14..9bd1bcf 100644 (file)
@@ -531,7 +531,6 @@ static int rpc_client_default_out_channel_recv(rdpRpc* rpc)
                {
                        WLog_ERR(TAG, "error! Status Code: %"PRIu32"", statusCode);
                        http_response_print(response);
-                       http_response_free(response);
 
                        if (statusCode == HTTP_STATUS_DENIED)
                        {