comparison src/http/ngx_http_request.c @ 928:a6fe6bedb9e3

fix segfault when $host is used and *) request is "GET http://host" without CR or LF, or timed out *) request is "GET http://host" with a large blank space
author Igor Sysoev <igor@sysoev.ru>
date Fri, 15 Dec 2006 10:24:57 +0000
parents 49d03c183ad2
children b3d642b5e4bb
comparison
equal deleted inserted replaced
927:4f3d57408877 928:a6fe6bedb9e3
1102 r->schema_end = new + (r->schema_end - old); 1102 r->schema_end = new + (r->schema_end - old);
1103 } 1103 }
1104 1104
1105 if (r->host_start) { 1105 if (r->host_start) {
1106 r->host_start = new + (r->host_start - old); 1106 r->host_start = new + (r->host_start - old);
1107 r->host_end = new + (r->host_end - old); 1107 if (r->host_end) {
1108 r->host_end = new + (r->host_end - old);
1109 }
1108 } 1110 }
1109 1111
1110 if (r->port_start) { 1112 if (r->port_start) {
1111 r->port_start = new + (r->port_start - old); 1113 r->port_start = new + (r->port_start - old);
1112 r->port_end = new + (r->port_end - old); 1114 r->port_end = new + (r->port_end - old);