mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
Removed zero termination of shm zone names.
It was added in r2717 and no longer needed since r2721, where the termination was added to ngx_shm_alloc() and ngx_init_zone_pool(). So then it only corrupts error messages about ivalid zones.
This commit is contained in:
parent
a98305e363
commit
59db08a6fc
@ -661,7 +661,6 @@ ngx_http_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
|
|
||||||
for (j = sizeof("shared:") - 1; j < value[i].len; j++) {
|
for (j = sizeof("shared:") - 1; j < value[i].len; j++) {
|
||||||
if (value[i].data[j] == ':') {
|
if (value[i].data[j] == ':') {
|
||||||
value[i].data[j] = '\0';
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1674,8 +1674,6 @@ ngx_http_file_cache_set_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
p = (u_char *) ngx_strchr(name.data, ':');
|
p = (u_char *) ngx_strchr(name.data, ':');
|
||||||
|
|
||||||
if (p) {
|
if (p) {
|
||||||
*p = '\0';
|
|
||||||
|
|
||||||
name.len = p - name.data;
|
name.len = p - name.data;
|
||||||
|
|
||||||
p++;
|
p++;
|
||||||
|
Loading…
Reference in New Issue
Block a user