From 44dad918f82124272486dfd4439dd72cb969fa12 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 29 Jan 2020 16:22:32 +0000 Subject: [PATCH] Warn if a message type that is no longer used is received. --- client.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.c b/client.c index a36c6471..0c2a6ee2 100644 --- a/client.c +++ b/client.c @@ -863,6 +863,12 @@ client_dispatch_wait(struct imsg *imsg) case MSG_WRITE_CLOSE: client_write_close(data, datalen); break; + case MSG_OLDSTDERR: + case MSG_OLDSTDIN: + case MSG_OLDSTDOUT: + fprintf(stderr, "server version is too old for client\n"); + proc_exit(client_proc); + break; } }