Fix bug #68463 listen.allowed_clients can silently result in no allowed access

Add a "There are no allowed addresses for this pool"
This commit is contained in:
Remi Collet 2014-11-20 15:14:34 +01:00
parent c4ca220467
commit 5be75da202

View File

@ -280,6 +280,10 @@ void fcgi_set_allowed_clients(char *ip)
}
allowed_clients[n].sa.sa_family = 0;
free(ip);
if (!n) {
zlog(ZLOG_ERROR, "There are no allowed addresses for this pool");
/* don't clear allowed_clients as it will create an "open for all" security issue */
}
}
}