Warn if a message type that is no longer used is received.

pull/2075/head
nicm 2020-01-29 16:22:32 +00:00
parent 531daba584
commit 44dad918f8
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}