Mercurial > dovecot > core-2.2
diff src/login-common/login-proxy.h @ 6472:6afb29dc9273 HEAD
If proxy points to the same host/port/user combination as we currently have,
don't create an infinite connection loop.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 22 Sep 2007 18:23:52 +0300 |
parents | e4eb71ae8e96 |
children | 81806d402514 |
line wrap: on
line diff
--- a/src/login-common/login-proxy.h Sat Sep 22 18:01:37 2007 +0300 +++ b/src/login-common/login-proxy.h Sat Sep 22 18:23:52 2007 +0300 @@ -26,6 +26,11 @@ /* Free the proxy. This should be called if authentication fails. */ void login_proxy_free(struct login_proxy *proxy); +/* Return TRUE if host/port/destuser combination points to same as current + connection. */ +bool login_proxy_is_ourself(struct client *client, const char *host, + unsigned int port, const char *destuser); + /* Detach proxy from client. This is done after the authentication is successful and all that is left is the dummy proxying. */ void login_proxy_detach(struct login_proxy *proxy, struct istream *client_input,