mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Support zero-length addVL
This commit is contained in:
@@ -279,7 +279,7 @@ int Serializer::addVL(const std::vector<unsigned char>& vector)
|
||||
int Serializer::addVL(const void *ptr, int len)
|
||||
{
|
||||
int ret = addRaw(encodeVL(len));
|
||||
addRaw(ptr, len);
|
||||
if (len) addRaw(ptr, len);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user