Mercurial > hg > nginx
comparison src/http/modules/ngx_http_limit_zone_module.c @ 1036:defdce84b172
fix comparison
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Jan 2007 19:01:10 +0000 |
parents | ce08bc4cb97b |
children | 03341711f9a2 |
comparison
equal
deleted
inserted
replaced
1035:4fcea9a9117b | 1036:defdce84b172 |
---|---|
177 /* hash == node->key */ | 177 /* hash == node->key */ |
178 | 178 |
179 do { | 179 do { |
180 lz = (ngx_http_limit_zone_node_t *) &node->color; | 180 lz = (ngx_http_limit_zone_node_t *) &node->color; |
181 | 181 |
182 rc = ngx_memn2cmp(lz->data, vv->data, (size_t) lz->len, len); | 182 rc = ngx_memn2cmp(vv->data, lz->data, len, (size_t) lz->len); |
183 | 183 |
184 if (rc == 0) { | 184 if (rc == 0) { |
185 if ((ngx_uint_t) lz->conn < lzcf->conn) { | 185 if ((ngx_uint_t) lz->conn < lzcf->conn) { |
186 lz->conn++; | 186 lz->conn++; |
187 goto done; | 187 goto done; |