dovecot-2.0: ssl-params: Make sure we don't leak a timeout.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 16 16:37:50 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/327486d79620
changeset: 12851:327486d79620
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 16 16:37:42 2011 +0300
description:
ssl-params: Make sure we don't leak a timeout.

diffstat:

 src/ssl-params/main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 8c76426a9e53 -r 327486d79620 src/ssl-params/main.c
--- a/src/ssl-params/main.c	Tue Jun 14 16:59:57 2011 +0300
+++ b/src/ssl-params/main.c	Thu Jun 16 16:37:42 2011 +0300
@@ -83,8 +83,11 @@
 		   ran us at startup to make sure ssl parameters are generated
 		   asap. if we're here because of that, don't bother hanging
 		   around to see if we get any client connections. */
-		to_startup = timeout_add(STARTUP_IDLE_TIMEOUT_MSECS,
-					 master_service_stop, master_service);
+		if (to_startup == NULL) {
+			to_startup = timeout_add(STARTUP_IDLE_TIMEOUT_MSECS,
+						 master_service_stop,
+						 master_service);
+		}
 		return;
 	}
 


More information about the dovecot-cvs mailing list