Commit 7a10bbe7 authored by Martin Sustrik's avatar Martin Sustrik

Bug in subscription matching fixed (issue 263)

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 34b114d1
......@@ -236,11 +236,12 @@ void zmq::mtrie_t::match (unsigned char *data_, size_t size_,
}
// If there are multiple subnodes.
if (data_ [0] < min || data_ [0] >= min + count)
if (data_ [0] < current->min || data_ [0] >=
current->min + current->count)
break;
if (!current->next.table [data_ [0] - min])
if (!current->next.table [data_ [0] - current->min])
break;
current = current->next.table [data_ [0] - min];
current = current->next.table [data_ [0] - current->min];
data_++;
size_--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment