Commit ef5543ec authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Merge r1745863, r1745864 from trunk:

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
parent da74ffab
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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:
+2 −2
Original line number Diff line number Diff line
@@ -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 */