* server/listen.c: Fix building on FreeBSD.
Tested on FreeBSD 5.4. Seems to enable the accept filters correctly, for both HTTP and HTTPS.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/listen-protocol@171035 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/server/listen.c b/server/listen.c
index 05729ba..6a3ee9e 100644
--- a/server/listen.c
+++ b/server/listen.c
@@ -217,11 +217,12 @@
if (accf) {
#if APR_HAS_SO_ACCEPTFILTER
- rv = apr_socket_accept_filter(s, ACCEPT_FILTER_NAME, "");
+ rv = apr_socket_accept_filter(s, apr_pstrdup(p, accf),
+ apr_pstrdup(p,""));
if (rv != APR_SUCCESS && !APR_STATUS_IS_ENOTIMPL(rv)) {
ap_log_perror(APLOG_MARK, APLOG_WARNING, rv, p,
"Failed to enable the '%s' Accept Filter",
- ACCEPT_FILTER_NAME);
+ accf);
}
#else
#ifdef APR_TCP_DEFER_ACCEPT