summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
commit9a402ea83d24ab4e380298a5718e7c4bf1a76219 (patch)
treeea42d0640de86f1cb926c9bc561d0c4e11cd894b
parente58f4ef0d030f270c3ef2da7dcb891c961718372 (diff)
downloadunit-9a402ea83d24ab4e380298a5718e7c4bf1a76219.tar.gz
unit-9a402ea83d24ab4e380298a5718e7c4bf1a76219.tar.bz2
Taken counter initialized for new pages.
Fixed crash in nxt_mp_get() when pages re-used and 'taken' contains initial 'map' value '0xFFFFFFFF'.
Diffstat (limited to '')
-rw-r--r--src/nxt_mp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 464df1c1..aafc1ab5 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -568,6 +568,7 @@ nxt_mp_get_small(nxt_mp_t *mp, nxt_queue_t *pages, size_t size)
nxt_queue_insert_head(pages, &page->link);
page->size = 0xFF;
+ page->u.taken = 0;
found: