mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -173,7 +173,7 @@ virStorageBackendGlusterReadHeader(glfs_fd_t *fd,
|
||||
}
|
||||
if (r == 0)
|
||||
return nread;
|
||||
buf += r;
|
||||
s += r;
|
||||
maxlen -= r;
|
||||
nread += r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user