Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8293:6f2bb9f58804 HEAD
login processes: When shutting down, don't die with fd_send() error message.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 18 Oct 2008 20:50:20 +0300 |
parents | 9ed4ecd4a866 |
children | 8aa69e3d27ef |
files | src/login-common/master.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/login-common/master.c Sat Oct 18 20:26:35 2008 +0300 +++ b/src/login-common/master.c Sat Oct 18 20:50:20 2008 +0300 @@ -70,6 +70,16 @@ i_assert(auth_pid != 0); + if (master_fd == -1) { + struct master_login_reply reply; + + i_assert(closing_down); + memset(&reply, 0, sizeof(reply)); + reply.status = MASTER_LOGIN_STATUS_INTERNAL_ERROR; + callback(client, &reply); + return; + } + data = i_stream_get_data(client->input, &size); cmd_tag_size = client->auth_command_tag == NULL ? 0 : strlen(client->auth_command_tag);