[dovecot-cvs] dovecot/src/login-common ssl-proxy-openssl.c, 1.37.2.11, 1.37.2.12

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


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

Modified Files:
      Tag: branch_1_0
	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.37.2.11
retrieving revision 1.37.2.12
diff -u -d -r1.37.2.11 -r1.37.2.12
--- ssl-proxy-openssl.c	15 Oct 2006 22:07:09 -0000	1.37.2.11
+++ ssl-proxy-openssl.c	8 Nov 2006 20:51:30 -0000	1.37.2.12
@@ -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