From 6a11a9c90989691bc07a11af37faae06b83f1577 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Wed, 6 Aug 2003 20:23:06 +0000 Subject: [PATCH] (child_main): Fixed an off-by-one error with the maxrequestsperchild variable. [Fix proposed by Yannick Koehler] --- src/child.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/child.c b/src/child.c index 9726aa8..9359a4b 100644 --- a/src/child.c +++ b/src/child.c @@ -1,4 +1,4 @@ -/* $Id: child.c,v 1.11 2003-05-31 23:02:21 rjkaes Exp $ +/* $Id: child.c,v 1.11.2.1 2003-08-06 20:23:06 rjkaes Exp $ * * Handles the creation/destruction of the various children required for * processing incoming connections. @@ -212,7 +212,7 @@ child_main(struct child_s* ptr) DEBUG2("%u connections so far...", ptr->connects); - if (ptr->connects == child_config.maxrequestsperchild - 1) { + if (ptr->connects == child_config.maxrequestsperchild) { log_message(LOG_NOTICE, "Child has reached MaxRequestsPerChild (%u). Killing child.", ptr->connects);