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 2013/06/08 16:58:54 UTC

svn commit: r1490994 - /httpd/httpd/trunk/modules/proxy/proxy_util.c

Author: jailletc36
Date: Sat Jun  8 14:58:53 2013
New Revision: 1490994

URL: http://svn.apache.org/r1490994
Log:
NULL terminate the right buffer

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=1490994&r1=1490993&r2=1490994&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sat Jun  8 14:58:53 2013
@@ -2365,7 +2365,7 @@ static apr_status_t send_http_connect(pr
         nbytes = sizeof(drain_buffer) - 1;
         while (status == APR_SUCCESS && nbytes) {
             status = apr_socket_recv(backend->sock, drain_buffer, &nbytes);
-            buffer[nbytes] = '\0';
+            drain_buffer[nbytes] = '\0';
             nbytes = sizeof(drain_buffer) - 1;
             if (strstr(drain_buffer, "\r\n\r\n") != NULL) {
                 break;