]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
No need to apr_pstrdup things here, 'apr_socket_accept_filter' already makes it own...
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 23 Oct 2012 20:32:04 +0000 (20:32 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 23 Oct 2012 20:32:04 +0000 (20:32 +0000)
Not compiled nor tested as on my system APR_HAS_SO_ACCEPTFILTER is set to 0.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1401448 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index a85095d45629cf55c38c6057d1b9f200084d359c..29b2a1f774620439a2f80f68362899cb10eb72bb 100644 (file)
@@ -213,8 +213,7 @@ 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, apr_pstrdup(p, accf),
-                                      apr_pstrdup(p,""));
+        rv = apr_socket_accept_filter(s, accf, "");
         if (rv != APR_SUCCESS && !APR_STATUS_IS_ENOTIMPL(rv)) {
             ap_log_perror(APLOG_MARK, APLOG_WARNING, rv, p, APLOGNO(00075)
                           "Failed to enable the '%s' Accept Filter",