summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r--usr.sbin/relayd/parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index 49f89707f0d..4d801634b9e 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.45 2007/05/29 17:12:04 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.46 2007/05/29 18:59:54 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -1474,6 +1474,9 @@ parse_config(const char *filename, int opts)
errors++;
}
+ if (TAILQ_EMPTY(&conf->relays))
+ conf->prefork_relay = 0;
+
if (timercmp(&conf->timeout, &conf->interval, >=)) {
log_warnx("global timeout exceeds interval");
errors++;