aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mds-vt.c5
1 files changed, 4 insertions, 1 deletions
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? */
}