]> granicus.if.org Git - apache/commitdiff
Merge r1745863, r1745864 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 14 Feb 2018 13:20:01 +0000 (13:20 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 14 Feb 2018 13:20:01 +0000 (13:20 +0000)
Fix segfault with logresolve -c and IPv6

Due to a logic error, there could be a NULL pointer dereference.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823259

Fix comment typo

Submitted by: sf
Reviewed by: jailletc36, minfrin, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1824239 13f79535-47bb-0310-9956-ffa450edef68

STATUS
support/logresolve.c

diff --git a/STATUS b/STATUS
index b80dd089cdbb1f7f80d1a7018d5967f2cfe354fe..9f6071e38f584c27c524a0e42ec5b1ced1e72ee8 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -119,13 +119,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) logresolve: Fix segfault with logresolve -c and IPv6
-     Due to a logic error, there could be a NULL pointer dereference.
-     [Stefan Fritsch]
-     trunk patch: http://svn.apache.org/r1745863
-                  http://svn.apache.org/r1745864
-     2.4.x patch: trunk works
-     +1: jailletc36, minfrin, jim
 
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
index 87df4e82e8cda81fcf67f7e9ef5482852f109c0d..1cab753bc3b34532719599f9d9902dc8b227ec02 100644 (file)
@@ -284,7 +284,7 @@ int main(int argc, const char * const argv[])
              */
             status = apr_sockaddr_info_get(&ipdouble, hostname, ip->family, 0,
                                            0, pline);
-            if (status == APR_SUCCESS ||
+            if (status != APR_SUCCESS ||
                 memcmp(ipdouble->ipaddr_ptr, ip->ipaddr_ptr, ip->ipaddr_len)) {
                 /* Double-lookup failed  */
                 *space = ' ';
@@ -299,7 +299,7 @@ int main(int argc, const char * const argv[])
             }
         }
 
-        /* Outout the resolved name */
+        /* Output the resolved name */
         apr_file_printf(outfile, "%s %s", hostname, space + 1);
 
         /* Store it in the cache */