Project

General

Profile

Actions

Bug #2043

closed

mod_proxy.c v1.4.23 compile error with ./configure --disable-ipv6

Added by mikahe over 15 years ago. Updated over 15 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_proxy
Target version:
-
ASK QUESTIONS IN Forums:

Description

#if defined(HAVE_IPV6) or similar flagging is missing in mod_proxy.c lines 757-769:


    switch(hctx->state) {
    case PROXY_STATE_INIT:
        if (strstr(host->host->ptr,":")) {
            if (-1 == (hctx->fd = socket(AF_INET6, SOCK_STREAM, 0))) {
            log_error_write(srv, __FILE__, __LINE__, "ss", "socket failed: ", strerror(errno));
            return HANDLER_ERROR;
            }
        } else {
            if (-1 == (hctx->fd = socket(AF_INET, SOCK_STREAM, 0))) {
            log_error_write(srv, __FILE__, __LINE__, "ss", "socket failed: ", strerror(errno));
            return HANDLER_ERROR;
            }
        }

Actions #1

Updated by stbuehler over 15 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2605.

Actions

Also available in: Atom