mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-01 14:55:59 +01:00
Bug in subscription matching fixed (issue 263)
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
34b114d15d
commit
7a10bbe77a
@ -236,11 +236,12 @@ void zmq::mtrie_t::match (unsigned char *data_, size_t size_,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If there are multiple subnodes.
|
// 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;
|
break;
|
||||||
if (!current->next.table [data_ [0] - min])
|
if (!current->next.table [data_ [0] - current->min])
|
||||||
break;
|
break;
|
||||||
current = current->next.table [data_ [0] - min];
|
current = current->next.table [data_ [0] - current->min];
|
||||||
data_++;
|
data_++;
|
||||||
size_--;
|
size_--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user