1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-08 09:57:26 +03:00

storage: gluster: Fix header reader function

Advance the right pointer to actually append to the buffer. We were
lucky that all reads were completed in one try.
This commit is contained in:
Peter Krempa 2014-07-01 16:54:11 +02:00
parent 88f3f7c390
commit f412fc9ffa

View File

@ -173,7 +173,7 @@ virStorageBackendGlusterReadHeader(glfs_fd_t *fd,
}
if (r == 0)
return nread;
buf += r;
s += r;
maxlen -= r;
nread += r;
}