Coverity; possible NULL pointer deref at startup with a
particular (and unlikely) listener/system config.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1209417 13f79535-47bb-0310-9956-
ffa450edef68
* listen (which would generate an error). IPv4 will be handled
* on the established IPv6 socket.
*/
- if (IS_INADDR_ANY(lr->bind_addr)) {
+ if (IS_INADDR_ANY(lr->bind_addr) && previous) {
for (cur = ap_listeners; cur != lr; cur = cur->next) {
if (lr->bind_addr->port == cur->bind_addr->port
&& IS_IN6ADDR_ANY(cur->bind_addr)