Commit b8c86919 authored by aligungr's avatar aligungr

Configuration update command bug fix

parent b8adc2fb
......@@ -19,6 +19,9 @@ OctetView::OctetView(const uint8_t *data, size_t size) : data(data), index(0), s
OctetString OctetView::readOctetString(int length) const
{
if (length == 0)
return {};
std::vector<uint8_t> v{data + index, data + index + length};
index += length;
return OctetString(std::move(v));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment