mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
rpc: add mising locking in virNetClientStreamRecvHole
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
4deed5f3c7
commit
8457fd5034
@ -644,8 +644,12 @@ virNetClientStreamRecvHole(virNetClientPtr client ATTRIBUTE_UNUSED,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virObjectLock(st);
|
||||||
|
|
||||||
*length = st->holeLength;
|
*length = st->holeLength;
|
||||||
st->holeLength = 0;
|
st->holeLength = 0;
|
||||||
|
|
||||||
|
virObjectUnlock(st);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user