From a65a5575f8743a408368edcac5a100b90f39e6ad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 9 Sep 2014 06:42:17 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-vt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mds-vt.c b/src/mds-vt.c index 8948c97..3031d20 100644 --- a/src/mds-vt.c +++ b/src/mds-vt.c @@ -599,13 +599,16 @@ int handle_message(void) /* Take appropriate action. */ + if (recv_command == NULL) + return 0; /* How did that get here, not matter, just ignore it? */ + if (strequals(recv_command, "get-vt")) return handle_get_vt(recv_client_id, recv_message_id); if (strequals(recv_command, "configure-vt")) return handle_configure_vt(recv_client_id, recv_message_id, recv_graphical, recv_exclusive); - return 0; + return 0; /* How did that get here, not matter, just ignore it? */ } -- cgit v1.2.3-70-g09d2