Commit 99c3d842 authored by Chuck Murcko's avatar Chuck Murcko
Browse files

Fix logic in connect handler from previous patch


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88845 13f79535-47bb-0310-9956-ffa450edef68
parent 14731783
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -331,9 +331,9 @@ int ap_proxy_connect_handler(request_rec *r, char *url,
                    int o = 0;
                    while(nbytes)
                    {
                        i = nbytes;
			if (apr_send(r->connection->client_socket, buffer + o, &nbytes) != APR_SUCCESS)
			    break;
                        i = nbytes;
                        o += i;
                        nbytes -= i;
                    }
@@ -354,9 +354,9 @@ int ap_proxy_connect_handler(request_rec *r, char *url,
                    int o = 0;
                    while(nbytes)
                    {
                        i = nbytes;
			if (apr_send(sock, buffer + o, &nbytes) != APR_SUCCESS)
			    break;
                        i = nbytes;
                        o += i;
                        nbytes -= i;
                    }