Mercurial > dovecot > core-2.2
diff src/director/auth-connection.c @ 18670:d54dc360cd3c
director: Minor code cleanup - allow access to auth connection's ostream directly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 13 May 2015 13:57:24 +0300 |
parents | 67fdd6f962f5 |
children | 0f22db71df7a |
line wrap: on
line diff
--- a/src/director/auth-connection.c Wed May 13 13:15:57 2015 +0300 +++ b/src/director/auth-connection.c Wed May 13 13:57:24 2015 +0300 @@ -121,12 +121,10 @@ conn->callback(NULL, conn->context); } -void auth_connection_send(struct auth_connection *conn, - const void *data, size_t size) +struct ostream *auth_connection_get_output(struct auth_connection *conn) { - i_assert(conn->fd != -1); - - o_stream_nsend(conn->output, data, size); + i_assert(conn->output != NULL); + return conn->output; } void auth_connections_deinit(void)