]> git.kaiwu.me - nginx.git/commitdiff
fix comparison
authorIgor Sysoev <igor@sysoev.ru>
Tue, 16 Jan 2007 19:01:10 +0000 (19:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 16 Jan 2007 19:01:10 +0000 (19:01 +0000)
src/http/modules/ngx_http_limit_zone_module.c

index 416a4ebf4be242be3218d926eef31108e2f5a79f..17643e17432074a64be8cc00a925bb6ab0c24061 100644 (file)
@@ -179,7 +179,7 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
         do {
             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 ((ngx_uint_t) lz->conn < lzcf->conn) {