]> granicus.if.org Git - apache/commitdiff
mod_dumpio: follow up to r1818802.
authorYann Ylavic <ylavic@apache.org>
Wed, 20 Dec 2017 16:42:42 +0000 (16:42 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 20 Dec 2017 16:42:42 +0000 (16:42 +0000)
Negate APLOGctrace7(c) test!

Also, return DECLINED when nothing is to be done, same result as OK but
possibly more semantically correct.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818825 13f79535-47bb-0310-9956-ffa450edef68

modules/debugging/mod_dumpio.c

index 58f72a551dec84dbf2141444915bb4ab16ac077f..8a3386012afdf6d1ddf92d9c26a711fc996ee1c8 100644 (file)
@@ -181,9 +181,9 @@ static int dumpio_pre_conn(conn_rec *c, void *csd)
 {
     dumpio_conf_t *ptr;
 
-    if (APLOGctrace7(c)) {
+    if (!APLOGctrace7(c)) {
         /* Nothing to do below TRACE7 */
-        return OK;
+        return DECLINED;
     }
 
     ptr = (dumpio_conf_t *) ap_get_module_config(c->base_server->module_config,