X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/63e28749e32a11987f322e7e4764c46c4976808a..346ba8d53eb0c9cead1d3818eedc1b004ea938af:/lib/eclient.c diff --git a/lib/eclient.c b/lib/eclient.c index 971dc4c..519e603 100644 --- a/lib/eclient.c +++ b/lib/eclient.c @@ -546,8 +546,10 @@ static void read_input(disorder_eclient *c) { if(c->state > state_connecting) consume(&c->input, (nl - c->input.vec) + 1); } - if(c->eof) + if(c->eof) { comms_error(c, "reading from %s: server disconnected", c->ident); + c->authenticated = 0; + } } /* called with a line that has just been read */