You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2007/03/06 02:54:21 UTC
svn commit: r514952 - /httpd/httpd/trunk/support/logresolve.c
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;
}