mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
RedisConnection::ReadRESP(): *-1\r\n is null, not [ ]
This commit is contained in:
parent
323da4f06b
commit
ce994d8135
@ -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