From 8d43c4344d8db0e92bd505882756288792248c8e Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 12 Apr 2018 15:07:45 -0700 Subject: [PATCH] GUACAMOLE-482: Ignore invalid instructions within guacenc. Log failure at debug level. --- src/guacenc/encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guacenc/encode.c b/src/guacenc/encode.c index 2d74a9b6..3de9d796 100644 --- a/src/guacenc/encode.c +++ b/src/guacenc/encode.c @@ -65,8 +65,8 @@ static int guacenc_read_instructions(guacenc_display* display, while (!guac_parser_read(parser, socket, -1)) { if (guacenc_handle_instruction(display, parser->opcode, parser->argc, parser->argv)) { - guac_parser_free(parser); - return 1; + guacenc_log(GUAC_LOG_DEBUG, "Handling of \"%s\" instruction " + "failed.", parser->opcode); } }