summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/hastd/parse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/hastd/parse.y b/sbin/hastd/parse.y
index 3f34ff7..91e4870 100644
--- a/sbin/hastd/parse.y
+++ b/sbin/hastd/parse.y
@@ -461,6 +461,10 @@ compression_type:
timeout_statement: TIMEOUT NUM
{
+ if ($2 <= 0) {
+ pjdlog_error("Negative or zero timeout.");
+ return (1);
+ }
switch (depth) {
case 0:
depth0_timeout = $2;
OpenPOWER on IntegriCloud