httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r514915 - /httpd/httpd/trunk/support/logresolve.c
Date Mon, 05 Mar 2007 23:21:34 GMT
Author: jorton
Date: Mon Mar  5 15:21:31 2007
New Revision: 514915

URL: http://svn.apache.org/viewvc?view=rev&rev=514915
Log:
* support/logresolve.c (main): Fix potential NULL pointer dereference,
found by Coverity analysis tool.

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=514915&r1=514914&r2=514915
==============================================================================
--- httpd/httpd/trunk/support/logresolve.c (original)
+++ httpd/httpd/trunk/support/logresolve.c Mon Mar  5 15:21:31 2007
@@ -237,7 +237,7 @@
         if (status != APR_SUCCESS) {
             /* Not an IP address */
                 withname++;
-            *space = ' ';
+            if (space) *space = ' ';
             apr_file_puts(line, outfile);
             continue;
         }



Mime
View raw message