1
0
Fork 0

fix buffer overrun when there are more users than DATA_PROTECTOR_MULTIPLICITY

This commit is contained in:
Jan Steemann 2015-08-13 20:57:34 +02:00
parent ca5b7661a3
commit 22e14c9444
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ namespace triagens {
if (id < 0) {
id = _last++;
if (_last > DATA_PROTECTOR_MULTIPLICITY) {
if (_last >= DATA_PROTECTOR_MULTIPLICITY) {
_last = 0;
}
_mySlot = id;