Commit 0009d2a6 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

socket: don't allow mixing of accepting and non-accepting sockets in the same unit

parent cac6f7c8
......@@ -160,6 +160,11 @@ static int socket_verify(Socket *s) {
return -EINVAL;
if (s->accept && have_non_accept_socket(s)) {
log_error("%s configured for accepting sockets, but sockets are non-accepting. Refusing.", s->;
return -EINVAL;
if (s->accept && s->max_connections <= 0) {
log_error("%s's MaxConnection setting too small. Refusing.", s->;
return -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment