forked from vitalif/vitastor
Fix a HUGE :) bug in NBD proxy
The bug could result in corrupted data on large writes
parent
a420c77107
commit
9c30df83e3
|
@ -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…
Reference in New Issue