fix comparison

This commit is contained in:
Igor Sysoev 2007-01-16 19:01:10 +00:00
parent c326529feb
commit 03c9cb7afc

View File

@ -179,7 +179,7 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
do { do {
lz = (ngx_http_limit_zone_node_t *) &node->color; lz = (ngx_http_limit_zone_node_t *) &node->color;
rc = ngx_memn2cmp(lz->data, vv->data, (size_t) lz->len, len); rc = ngx_memn2cmp(vv->data, lz->data, len, (size_t) lz->len);
if (rc == 0) { if (rc == 0) {
if ((ngx_uint_t) lz->conn < lzcf->conn) { if ((ngx_uint_t) lz->conn < lzcf->conn) {