From 0b6b14b71ea0aa5e68226d3e1aec818ea315ea9b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 9 Jan 2021 21:15:48 -0800 Subject: [PATCH] GUACAMOLE-1259: Include missing config.h header for sake of conditional Stream_Free(). The changes introduced by GUACAMOLE-1181 (commit 2c86e20) were made conditional as older versions of FreeRDP will automatically free the wStream, resulting in a double-free if we attempt to do so ourselves. The macro controlling that conditional code is defined within config.h, which is missing here. Without that macro, the call to Stream_Free() always occurs, and we get a double-free with older FreeRDP. --- src/protocols/rdp/plugins/guac-common-svc/guac-common-svc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocols/rdp/plugins/guac-common-svc/guac-common-svc.c b/src/protocols/rdp/plugins/guac-common-svc/guac-common-svc.c index 0a464850..027e7732 100644 --- a/src/protocols/rdp/plugins/guac-common-svc/guac-common-svc.c +++ b/src/protocols/rdp/plugins/guac-common-svc/guac-common-svc.c @@ -17,6 +17,7 @@ * under the License. */ +#include "config.h" #include "channels/common-svc.h" #include