summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy.c b/src/proxy.c
index 7019606f0..83ef1d599 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -279,7 +279,7 @@ void maintain_proxies(struct timeval *next)
/* if there are enough free sessions, we'll activate proxies */
if (actconn < global.maxconn) {
while (p) {
- if (p->feconn < p->maxconn) {
+ if (!p->maxconn || p->feconn < p->maxconn) {
if (p->state == PR_STIDLE) {
for (l = p->listen; l != NULL; l = l->next)
enable_listener(l);