From d1b4ce00e1250dc63febdf49fc718b058e58859d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 27 Nov 2011 16:39:46 -0800 Subject: [PATCH] Set guac_error* before calling client handlers --- guacd/src/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guacd/src/client.c b/guacd/src/client.c index b2402783..1a92f884 100644 --- a/guacd/src/client.c +++ b/guacd/src/client.c @@ -171,6 +171,11 @@ void* __guac_client_input_thread(void* data) { return NULL; } + /* Reset guac_error and guac_error_message (client handlers are not + * guaranteed to set these) */ + guac_error = GUAC_STATUS_SUCCESS; + guac_error_message = NULL; + /* Call handler, stop on error */ if (guac_client_handle_instruction(client, instruction) < 0) {