httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r514952 - /httpd/httpd/trunk/support/logresolve.c
Date Tue, 06 Mar 2007 01:54:21 GMT
Author: colm
Date: Mon Mar  5 17:54:20 2007
New Revision: 514952

URL: http://svn.apache.org/viewvc?view=rev&rev=514952
Log:
Correct a spurious access to whatever memory is at location "1" in the
cirumstance where a log line is of the form "nn.nn.nn.nn ". 

Modified:
    httpd/httpd/trunk/support/logresolve.c

Modified: httpd/httpd/trunk/support/logresolve.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/logresolve.c?view=diff&rev=514952&r1=514951&r2=514952
==============================================================================
--- httpd/httpd/trunk/support/logresolve.c (original)
+++ httpd/httpd/trunk/support/logresolve.c Mon Mar  5 17:54:20 2007
@@ -227,7 +227,9 @@
         /* See if we have it in our cache */
         hostname = (char *) apr_hash_get(cache, line, APR_HASH_KEY_STRING);
         if (hostname) {
-            apr_file_printf(outfile, "%s %s", hostname, space + 1);
+            apr_file_printf(outfile, hostname);
+            if (space) 
+                apr_file_printf(outfile, " %s", space + 1);
             cachehits++;
             continue;
         }



Mime
View raw message