[dovecot-cvs] dovecot/src/login-common ssl-proxy-openssl.c, 1.44, 1.45

cras at dovecot.org cras at dovecot.org
Mon Aug 7 18:01:56 EEST 2006


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

Modified Files:
	ssl-proxy-openssl.c 
Log Message:
Don't crash if SSL is disabled.



Index: ssl-proxy-openssl.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/ssl-proxy-openssl.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- ssl-proxy-openssl.c	6 Aug 2006 20:08:54 -0000	1.44
+++ ssl-proxy-openssl.c	7 Aug 2006 15:01:54 -0000	1.45
@@ -654,7 +654,7 @@
 
 unsigned int ssl_proxy_get_count(void)
 {
-	return hash_size(ssl_proxies);
+	return ssl_proxies == NULL ? 0 : hash_size(ssl_proxies);
 }
 
 void ssl_proxy_init(void)



More information about the dovecot-cvs mailing list