From: Christophe Jaillet Date: Tue, 23 Oct 2012 20:32:04 +0000 (+0000) Subject: No need to apr_pstrdup things here, 'apr_socket_accept_filter' already makes it own... X-Git-Tag: 2.5.0-alpha~6179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=349bb764f2e93c8d618a883dfc89c1c62d8d5b87;p=thirdparty%2Fapache%2Fhttpd.git No need to apr_pstrdup things here, 'apr_socket_accept_filter' already makes it own copy. 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 --- diff --git a/server/listen.c b/server/listen.c index a85095d4562..29b2a1f7746 100644 --- a/server/listen.c +++ b/server/listen.c @@ -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",