mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
RedisConnection::ReadRESP(): *-1\r\n is null, not [ ]
This commit is contained in:
parent
4522522444
commit
2c3d2f8b87
@ -555,12 +555,12 @@ Value RedisConnection::ReadRESP(AsyncReadStream& stream, boost::asio::yield_cont
|
|||||||
throw BadRedisInt(std::move(buf));
|
throw BadRedisInt(std::move(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
Array::Ptr arr = new Array();
|
|
||||||
|
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
i = 0;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Array::Ptr arr = new Array();
|
||||||
|
|
||||||
arr->Reserve(i);
|
arr->Reserve(i);
|
||||||
|
|
||||||
for (; i; --i) {
|
for (; i; --i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user