]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ssl-params: Make sure we don't leak a timeout.
authorTimo Sirainen <tss@iki.fi>
Thu, 16 Jun 2011 13:37:42 +0000 (16:37 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 16 Jun 2011 13:37:42 +0000 (16:37 +0300)
src/ssl-params/main.c

index 71bbe6a0925cdac7c327916ca29d691ac73049f9..ea02dd6f58597ae1eddd562485b94aa15068427d 100644 (file)
@@ -83,8 +83,11 @@ static void ssl_params_callback(const unsigned char *data, size_t size)
                   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;
        }