Browse Source

Fix a HUGE :) bug in NBD proxy

The bug could result in corrupted data on large writes
lrc-matrix
Vitaliy Filippov 2 months ago
parent
commit
9c30df83e3
  1. 1
      src/nbd_proxy.cpp

1
src/nbd_proxy.cpp

@ -690,6 +690,7 @@ protected:
{
assert(result <= cur_left);
cur_left -= result;
cur_buf = (uint8_t*)cur_buf + result;
result = 0;
}
if (cur_left <= 0)

Loading…
Cancel
Save