From: Timo Sirainen Date: Thu, 16 Jun 2011 13:37:42 +0000 (+0300) Subject: ssl-params: Make sure we don't leak a timeout. X-Git-Tag: 2.0.14~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dea01176c2e10b66cc2531c7bcc9a495913c3b46;p=thirdparty%2Fdovecot%2Fcore.git ssl-params: Make sure we don't leak a timeout. --- diff --git a/src/ssl-params/main.c b/src/ssl-params/main.c index 71bbe6a092..ea02dd6f58 100644 --- a/src/ssl-params/main.c +++ b/src/ssl-params/main.c @@ -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; }