[dovecot-cvs] dovecot/src/imap-login imap-proxy.c,1.7.2.6,1.7.2.7
tss at dovecot.org
tss at dovecot.org
Fri Jan 19 21:20:20 UTC 2007
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv27349/imap-login
Modified Files:
Tag: branch_1_0
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.7.2.6
retrieving revision 1.7.2.7
diff -u -d -r1.7.2.6 -r1.7.2.7
--- imap-proxy.c 3 Dec 2006 20:02:47 -0000 1.7.2.6
+++ imap-proxy.c 19 Jan 2007 21:19:47 -0000 1.7.2.7
@@ -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