[dovecot-cvs] dovecot/src/login-common ssl-proxy-openssl.c, 1.49, 1.50

tss at dovecot.org tss at dovecot.org
Wed Nov 8 20:51:36 UTC 2006


Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv8072

Modified Files:
	ssl-proxy-openssl.c 
Log Message:
Don't bother logging "syscall failed: EOF" messages. No-one cares about
them.



Index: ssl-proxy-openssl.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/ssl-proxy-openssl.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- ssl-proxy-openssl.c	15 Oct 2006 22:10:30 -0000	1.49
+++ ssl-proxy-openssl.c	8 Nov 2006 20:51:32 -0000	1.50
@@ -336,15 +336,18 @@
 		if (verbose_ssl) {
 			if (ERR_peek_error() != 0)
 				errstr = ssl_last_error();
+			else if (ret != 0)
+				errstr = strerror(errno);
 			else {
-				if (ret == 0)
-					errstr = "EOF";
-				else
-					errstr = strerror(errno);
+				/* EOF. don't bother logging this. */
+				errstr = NULL;
 			}
 
-			i_warning("%s syscall failed: %s [%s]",
-				  func_name, errstr, net_ip2addr(&proxy->ip));
+			if (errstr != NULL) {
+				i_warning("%s syscall failed: %s [%s]",
+					  func_name, errstr,
+					  net_ip2addr(&proxy->ip));
+			}
 		}
 		ssl_proxy_destroy(proxy);
 		break;



More information about the dovecot-cvs mailing list