]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Be on the safe side
authorMartin Kraemer <martin@apache.org>
Sat, 23 Oct 1999 21:27:38 +0000 (21:27 +0000)
committerMartin Kraemer <martin@apache.org>
Sat, 23 Oct 1999 21:27:38 +0000 (21:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84028 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 2830a42fe76afd027437c0f0da924ab3bacee0d6..da18e8fa0eb7a3d8ccae4cbf2207ceace492230c 100644 (file)
@@ -409,7 +409,7 @@ static void log_error_core(const char *file, int line, int level,
                "%s(%d): ", file, line);
     }
 #endif /* TPF */
-    if (r) {
+    if (r && r->connection) {
        /* XXX: TODO: add a method of selecting whether logged client
         * addresses are in dotted quad or resolved form... dotted
         * quad is the most secure, which is why I'm implementing it