Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.c @ 5152:2ff51c32791f stable-1.2
Merge of r5078: 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(). Since then it only corrupted error
messages about invalid zones.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 29 Mar 2013 17:15:34 +0000 |
parents | c3b276283e4a |
children |
comparison
equal
deleted
inserted
replaced
5151:3c4f32ebef31 | 5152:2ff51c32791f |
---|---|
591 { | 591 { |
592 len = 0; | 592 len = 0; |
593 | 593 |
594 for (j = sizeof("shared:") - 1; j < value[i].len; j++) { | 594 for (j = sizeof("shared:") - 1; j < value[i].len; j++) { |
595 if (value[i].data[j] == ':') { | 595 if (value[i].data[j] == ':') { |
596 value[i].data[j] = '\0'; | |
597 break; | 596 break; |
598 } | 597 } |
599 | 598 |
600 len++; | 599 len++; |
601 } | 600 } |