[dovecot-cvs] dovecot/src/imap-login imap-proxy.c,1.14,1.15
tss at dovecot.org
tss at dovecot.org
Fri Jan 19 21:19:53 UTC 2007
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv27351/imap-login
Modified Files:
imap-proxy.c
Log Message:
Log the proxy destination host:port.
Index: imap-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/imap-proxy.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- imap-proxy.c 15 Dec 2006 18:38:10 -0000 1.14
+++ imap-proxy.c 19 Jan 2007 21:19:49 -0000 1.15
@@ -14,6 +14,7 @@
struct ostream *output, const char *line)
{
string_t *str;
+ const char *msg;
i_assert(!client->destroyed);
@@ -48,6 +49,11 @@
(void)o_stream_send_str(client->output, line + 1);
(void)o_stream_send(client->output, "\r\n", 2);
+ msg = t_strdup_printf("proxy(%s): started proxying to %s:%u",
+ client->common.virtual_user,
+ login_proxy_get_host(client->proxy),
+ login_proxy_get_port(client->proxy));
+
(void)client_skip_line(client);
login_proxy_detach(client->proxy, client->input,
client->output);
@@ -56,8 +62,7 @@
client->input = NULL;
client->output = NULL;
client->common.fd = -1;
- client_destroy(client, t_strdup_printf("proxy(%s): started",
- client->common.virtual_user));
+ client_destroy(client, msg);
return -1;
} else if (strncmp(line, "P ", 2) == 0) {
/* Login failed. Send our own failure reply so client can't
More information about the dovecot-cvs
mailing list