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:
parent
88f3f7c390
commit
f412fc9ffa
@ -173,7 +173,7 @@ virStorageBackendGlusterReadHeader(glfs_fd_t *fd,
|
||||
}
|
||||
if (r == 0)
|
||||
return nread;
|
||||
buf += r;
|
||||
s += r;
|
||||
maxlen -= r;
|
||||
nread += r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user