]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Fixed dropping pending listener connections when throttling a service.
authorTimo Sirainen <tss@iki.fi>
Mon, 19 Jul 2010 18:31:00 +0000 (19:31 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 19 Jul 2010 18:31:00 +0000 (19:31 +0100)
src/master/service.c

index c27a0f50240ab9827d3dcd8b90b410c36b96272d..acf6bfffa1d1897782a6b9572b3ad325f57e80ea 100644 (file)
@@ -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;
                        }