Permalink
Browse files

* 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
  • Loading branch information...
pquerna committed May 20, 2005
1 parent afd926e commit 11eb2e14c85bedd8821fc994578a3cc722a538a1
Showing with 3 additions and 2 deletions.
  1. +3 −2 server/listen.c
View
@@ -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

0 comments on commit 11eb2e1

Please sign in to comment.