httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1533169 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Thu, 17 Oct 2013 17:21:04 GMT
Author: jim
Date: Thu Oct 17 17:21:04 2013
New Revision: 1533169

URL: http://svn.apache.org/r1533169
Log:
from an idea by Yann Ylavic <ylavic.dev@gmail.com>

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1533169&r1=1533168&r2=1533169&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Thu Oct 17 17:21:04 2013
@@ -102,7 +102,7 @@ PROXY_DECLARE(apr_status_t) ap_proxy_str
     thelen = thenil - dst;
     /* Assume the typical case is smaller copying into bigger
        so we have a fast return */
-    if ((thelen < dlen-1) || ((strlen(src)) == thelen)) {
+    if ((thelen < dlen-1) || (src[thelen] == '\0') {
         return APR_SUCCESS;
     }
     /* XXX: APR_ENOSPACE would be better */



Mime
View raw message