vector_init(&c->vec);
dynstr_init(&c->input);
dynstr_init(&c->output);
+ if(!config->password) {
+ error(0, "no password set");
+ return 0;
+ }
return 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 */
indent-tabs-mode:nil
End:
*/
-/* arch-tag:61ONz2p/LWaDRnToGI2+fg */