summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index e86a64ad..3ee3e4ef 100644
--- a/client.c
+++ b/client.c
@@ -297,7 +297,8 @@ client_dispatch(void)
client_exitmsg = "detached";
break;
case MSG_EXIT:
- if (datalen != 0)
+ if (datalen != 0 &&
+ datalen != sizeof (struct msg_exit_data))
fatalx("bad MSG_EXIT size");
client_write_server(MSG_EXITING, NULL, 0);