diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-07 18:20:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-07 18:20:43 +0000 |
commit | e47e3ee2195038513f7b98557b98bbb1a9719546 (patch) | |
tree | f1754474071a1e7366b5d5ec37ec591af95e2b8a | |
parent | cc47bd85065f936fd5538a2ec67962fba1d8a11c (diff) |
be a bit more patient, 1s is sometimes insufficient for legitimate queries
-rw-r--r-- | usr.bin/mandoc/cgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index 04d9c71d2ef..4cfbfcc2841 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.37 2014/10/07 18:17:05 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.38 2014/10/07 18:20:42 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de> @@ -1032,9 +1032,9 @@ main(void) /* Poor man's ReDoS mitigation. */ - itimer.it_value.tv_sec = 1; + itimer.it_value.tv_sec = 2; itimer.it_value.tv_usec = 0; - itimer.it_interval.tv_sec = 1; + itimer.it_interval.tv_sec = 2; itimer.it_interval.tv_usec = 0; if (setitimer(ITIMER_VIRTUAL, &itimer, NULL) == -1) { fprintf(stderr, "setitimer: %s\n", strerror(errno)); |