Mercurial > dovecot > original-hg > dovecot-1.2
changeset 141:4d657b92448f HEAD
don't warn about UNEXPECTED_PACKET_LENGTH errors in SSL, they just mean the
connection was dropped.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 04 Sep 2002 00:21:40 +0300 |
parents | f62c2eee1fa8 |
children | 524e78f870a2 |
files | src/login/ssl-proxy.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/login/ssl-proxy.c Wed Sep 04 00:17:57 2002 +0300 +++ b/src/login/ssl-proxy.c Wed Sep 04 00:21:40 2002 +0300 @@ -54,8 +54,10 @@ if (rcvd > 0) return rcvd; - if (rcvd == 0) { - /* disconnected */ + if (rcvd == 0 || rcvd == GNUTLS_E_UNEXPECTED_PACKET_LENGTH) { + /* disconnected, either by nicely telling us that we'll + close the connection, or by simply killing the + connection which gives us the packet length error. */ ssl_proxy_destroy(proxy); return -1; }