]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/listen.c: Fix building on FreeBSD. listen-protocol listen-protocol
authorPaul Querna <pquerna@apache.org>
Fri, 20 May 2005 02:16:09 +0000 (02:16 +0000)
committerPaul Querna <pquerna@apache.org>
Fri, 20 May 2005 02:16:09 +0000 (02:16 +0000)
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

server/listen.c

index 05729ba497c22b737bd4cf295599a505b8b68155..6a3ee9e7bf9ae12ffcfb1a676d8dbb3944003059 100644 (file)
@@ -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