From: Timo Sirainen Date: Mon, 19 Jul 2010 18:31:00 +0000 (+0100) Subject: master: Fixed dropping pending listener connections when throttling a service. X-Git-Tag: 2.0.rc3~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d10f575f5b4814da97d64c2aeec2c2307dff7fb6;p=thirdparty%2Fdovecot%2Fcore.git master: Fixed dropping pending listener connections when throttling a service. --- diff --git a/src/master/service.c b/src/master/service.c index c27a0f5024..acf6bfffa1 100644 --- a/src/master/service.c +++ b/src/master/service.c @@ -622,7 +622,7 @@ static void service_drop_listener_connections(struct service *service) switch ((*listenerp)->type) { case SERVICE_LISTENER_UNIX: case SERVICE_LISTENER_INET: - if ((*listenerp)->fd != -1) { + if ((*listenerp)->fd == -1) { /* already stopped listening */ break; }