Due to a logic error, there could be a NULL pointer dereference.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823259
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1745863 13f79535-47bb-0310-9956-
ffa450edef68
*/
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 = ' ';