From: Timo Sirainen Date: Sun, 15 Jun 2003 01:11:16 +0000 (+0300) Subject: We might have crashed if we ended up killing login processes with too old X-Git-Tag: 1.1.alpha1~4558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d15d5c524990a855fd05a219f5fdf07764da3b8;p=thirdparty%2Fdovecot%2Fcore.git We might have crashed if we ended up killing login processes with too old auth requests. --HG-- branch : HEAD --- diff --git a/src/auth/login-connection.c b/src/auth/login-connection.c index 486a8a28b0..65bd1f4972 100644 --- a/src/auth/login-connection.c +++ b/src/auth/login-connection.c @@ -276,8 +276,10 @@ static void request_timeout(void *context __attr_unused__) struct login_connection *conn; for (conn = connections; conn != NULL; conn = conn->next) { + conn->refcount++; hash_foreach(conn->auth_requests, auth_request_hash_timeout_check, conn); + login_connection_unref(conn); } }