summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2005-05-20 02:16:09 +0000
committerPaul Querna <pquerna@apache.org>2005-05-20 02:16:09 +0000
commit80f33191f2fdfb3bcecf32fada751726ff4865af (patch)
tree0d2a85c8d2ffb78e9d961ea8b200b391cdf62529
parent3208f2102852ada2a3e19d9bab7f629ef1aaab03 (diff)
downloadhttpd-listen-protocol.tar.gz
* server/listen.c: Fix building on FreeBSD.listen-protocol
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
-rw-r--r--server/listen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/listen.c b/server/listen.c
index 05729ba497..6a3ee9e7bf 100644
--- a/server/listen.c
+++ b/server/listen.c
@@ -217,11 +217,12 @@ static void ap_apply_accept_filter(apr_pool_t *p, ap_listen_rec *lis,
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