]> granicus.if.org Git - apache/commitdiff
mod_reqtimeout: follow up to r1754391: fix missing "else".
authorYann Ylavic <ylavic@apache.org>
Thu, 28 Jul 2016 11:24:57 +0000 (11:24 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 28 Jul 2016 11:24:57 +0000 (11:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754399 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index 176b824e36ec40d28959ab673becdcfeca9845e8..538e9b1bde9bc60673d782b2c7bb28a2fcb63abd 100644 (file)
@@ -432,7 +432,7 @@ static int reqtimeout_before_body(request_rec *r)
         /* disabled for a CONNECT request */
         ccfg->new_timeout     = 0;
     }
-    if (cfg->body_timeout != UNSET) {
+    else if (cfg->body_timeout != UNSET) {
         ccfg->new_timeout     = cfg->body_timeout;
         ccfg->new_max_timeout = cfg->body_max_timeout;
         ccfg->min_rate        = cfg->body_min_rate;