You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2012/10/23 22:32:05 UTC
svn commit: r1401448 - /httpd/httpd/trunk/server/listen.c
Author: jailletc36
Date: Tue Oct 23 20:32:04 2012
New Revision: 1401448
URL: http://svn.apache.org/viewvc?rev=1401448&view=rev
Log:
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.
Modified:
httpd/httpd/trunk/server/listen.c
Modified: httpd/httpd/trunk/server/listen.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/listen.c?rev=1401448&r1=1401447&r2=1401448&view=diff
==============================================================================
--- httpd/httpd/trunk/server/listen.c (original)
+++ httpd/httpd/trunk/server/listen.c Tue Oct 23 20:32:04 2012
@@ -213,8 +213,7 @@ static void ap_apply_accept_filter(apr_p
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",